Beispiel #1
0
 protected virtual void OnTransformUpdated(SteamVR_Action_Pose pose)
 {
     //AttachmentsOnTransformUpdate();
 }
Beispiel #2
0
 private void OnPoseChanged(SteamVR_Action_Pose actionIn, SteamVR_Input_Sources hand)
 {
     transform.position = actionIn.GetLocalPosition(hand);
     transform.rotation = actionIn.GetLocalRotation(hand);
 }
Beispiel #3
0
        private void SteamVR_Behaviour_Pose_OnUpdate(SteamVR_Action_Pose fromAction, SteamVR_Input_Sources fromSource)
        {
            UpdateHistoryBuffer();

            UpdateTransform();
        }
Beispiel #4
0
 public void Initialize(Transform controllerTransform, SteamVR_Action_Pose controllerPose, SteamVR_Input_Sources inputSource)
 {
     ControllerTransform = controllerTransform;
     ControllerPose      = controllerPose;
     InputSource         = inputSource;
 }
Beispiel #5
0
 // Start is called before the first frame update
 void Start()
 {
     grab = SteamVR_Actions.default_GrabGrip;
     hand = SteamVR_Input_Sources.Any;
     pose = SteamVR_Actions.default_Pose;
 }