1
0
forked from cgvr/DeltaVR

archery range spawned objects are rotated towards the player

This commit is contained in:
2026-03-11 17:08:16 +02:00
parent c19026c0ac
commit 9fbd08eb25
3 changed files with 3 additions and 3 deletions

View File

@@ -145,6 +145,7 @@ public class ArcheryRange : NetworkBehaviour
targetObject = Instantiate(modelDisplay.Model, randomPos, Quaternion.identity, null);
InitializeArcheryTargetObject(targetObject);
}
targetObject.transform.rotation = targetStartPosition.rotation;
ArcheryTarget target = targetObject.GetComponent<ArcheryTarget>();
target.endPosition = targetEndPosition.position;