Skip to main content
Inspiring
December 5, 2017

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

This topic has been closed for replies.

6 replies

Inspiring
December 5, 2017
 Always coincides with the pose of the right hand.
    /// </summary>
    public Transform rightHandAnchor { get; private set; }

Is there any way of changing this ?

Inspiring
December 5, 2017
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
Inspiring
December 6, 2017
Bump, how do we break the anchor please?
Inspiring
December 8, 2017
bump :)
Inspiring
December 9, 2017
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





Inspiring
December 15, 2017
Thank you very much Your a star