public HandPhysics(HistoryBuffer buffer)
        {
            historyBuffer       = buffer;
            characterController = MonoBehaviour.FindObjectOfType <VR_CharacterController>();

            trackingSpace = VR_Manager.instance.TrackingSpace;
        }
示例#2
0
        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();
        }