forked from cgvr/DeltaVR
cheat keys also rotate player after teleport
This commit is contained in:
Binary file not shown.
@@ -36,6 +36,7 @@ public class ModelGenerationUtils : MonoBehaviour
|
||||
{
|
||||
XROrigin xrOrigin = FindObjectOfType<XROrigin>(includeInactive: true);
|
||||
xrOrigin.transform.position = minigamePoints[0].position;
|
||||
xrOrigin.transform.rotation = minigamePoints[0].rotation;
|
||||
}
|
||||
|
||||
|
||||
@@ -43,12 +44,14 @@ public class ModelGenerationUtils : MonoBehaviour
|
||||
{
|
||||
XROrigin xrOrigin = FindObjectOfType<XROrigin>(includeInactive: true);
|
||||
xrOrigin.transform.position = minigamePoints[1].position;
|
||||
xrOrigin.transform.rotation = minigamePoints[1].rotation;
|
||||
}
|
||||
|
||||
if (Keyboard.current.digit3Key.wasPressedThisFrame)
|
||||
{
|
||||
XROrigin xrOrigin = FindObjectOfType<XROrigin>(includeInactive: true);
|
||||
xrOrigin.transform.position = minigamePoints[2].position;
|
||||
xrOrigin.transform.rotation = minigamePoints[2].rotation;
|
||||
}
|
||||
|
||||
if (Keyboard.current.digit0Key.wasPressedThisFrame)
|
||||
|
||||
Reference in New Issue
Block a user