Welcome to the Oculus Developer Forums!

Your participation on the forum is subject to the Oculus Code of Conduct.

In general, please be respectful and kind. If you violate the Oculus Code of Conduct, your access to the developer forums may be revoked at the discretion of Oculus staff.

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

Tagged:

Comments

  • markncolleen1985markncolleen1985 Posts: 12
    NerveGear
     Always coincides with the pose of the right hand.
        /// </summary>
        public Transform rightHandAnchor { get; private set; }

    Is there any way of changing this ?

  • markncolleen1985markncolleen1985 Posts: 12
    NerveGear
    edited December 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
  • markncolleen1985markncolleen1985 Posts: 12
    NerveGear
    Bump, how do we break the anchor please?
  • markncolleen1985markncolleen1985 Posts: 12
    NerveGear
    bump :)
  • markncolleen1985markncolleen1985 Posts: 12
    NerveGear
    edited December 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





  • markncolleen1985markncolleen1985 Posts: 12
    NerveGear
    Thank you very much Your a star
Sign In or Register to comment.