Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
markncolleen198's avatar
8 years ago

Can anybody help me with OVRPLayerController prefab, ( hand anchor) Thanks

I am playing with the OVRPLayerController prefab,

i have attached the GearVrcontroller prefab to the right hand anchor,

and im trying to change the transform of the controller so it aims centrally..

when i change the transform it accepts it, i load up gear vr and then as
soon as i move the controller it reverts back to the default place What
can i do to get the controller to centre please? I am looking to change
the model of the controller to a gun ,
 
Thanks for taking time out to read this

6 Replies

Replies have been turned off for this discussion
  •  Always coincides with the pose of the right hand.
        /// </summary>
        public Transform rightHandAnchor { get; private set; }

    Is there any way of changing this ?

  • trackerAnchor.localPosition = tracker.position;  Ok i found it any help on how to change the placement of the anchor ?

    anchor.localPosition = Vector3.zero;


    Ok also my question, does the GearVrcontroller have to be anchored to the ovrcamera? or can it be placed elsewhere ?  Thanks
  • Hi, thanks for your reply. I am using unity 2017.2 and utilites 1.20,

    The part im trying to change is:

    The OVRCameraRig script positions all of the anchor objects,
    based on the name of each object

    I need to change this so i am able to centre the hand anchor for the controller into the middle of the camera, as you know its currently centred to be placed as a (hand) placement. ( so i can aim down down the iron sight ) I need the anchor set at eye level on the camera please

    I have tried to change the transform and overwrite it but no matter what it always defaults back, how can i change the position of the hand ? 

    This will help greatly


    Best regards and thanks for the work you guys do here


    Also your picture really makes me smile, good choice lol