forked from cgvr/DeltaVR
archery range spawned objects are rotated towards the player
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user