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

            UpdateTransform();
        }
示例#4
0
 public void Initialize(Transform controllerTransform, SteamVR_Action_Pose controllerPose, SteamVR_Input_Sources inputSource)
 {
     ControllerTransform = controllerTransform;
     ControllerPose      = controllerPose;
     InputSource         = inputSource;
 }
示例#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;
 }