1
0
forked from cgvr/DeltaVR

cheat keys also rotate player after teleport

This commit is contained in:
2026-03-12 19:08:05 +02:00
parent fc083e7d81
commit e56e3f3618
3 changed files with 6 additions and 5 deletions

View File

@@ -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)