public HandPhysics(HistoryBuffer buffer) { historyBuffer = buffer; characterController = MonoBehaviour.FindObjectOfType <VR_CharacterController>(); trackingSpace = VR_Manager.instance.TrackingSpace; }
private void Start() { characterController = FindObjectOfType <VR_CharacterController>(); if (characterController != null) { characterController.OnPlayerRotation.AddListener(OnPlayerRotate); } if (anchorPoint == null) { Player player = FindObjectOfType <Player>(); anchorPoint = player.PocketsAnchorPoint; } SetTeleportCallback(); }