Forum Discussion

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

neck offset wrt owner

I was noticing today when you roll the OVR player that the head is always offsetting the neck distance in Y wrt world. This screws up most any rotations of the player when its parented to something that moves around and rotates or if you're taking over control for a cutscene/cinematic moment.

I just removed the neck offset for the time being since I would take forever to adjust the code beings that I'm not very strong in coding, but a fix for this would be appreciated.

6 Replies

Replies have been turned off for this discussion
  • Well, i guess one of the rules of VR is to never take over the camera control from the player ; )
  • I was fussing around with the neck offset too, but it's a moot issue when we get positional tracking with dk2.
  • Lane's avatar
    Lane
    Honored Guest
    "virror" wrote:
    Well, i guess one of the rules of VR is to never take over the camera control from the player ; )


    im not taking complete control away. When I reparent it I expect it to act appropriately and the current neck offset setup denies that.

    "grodenglaive" wrote:
    I was fussing around with the neck offset too, but it's a moot issue when we get positional tracking with dk2.

    not if they assume the player is always vertical and this is still wrt world.
  • Well when you reparent a transform in unity, it's coordinates calculated so it's world position and rotation will remain the same. Easy way to avoid issues with that is to ensure that both transforms have exactly the same rotation and position before reparenting.
  • Lane's avatar
    Lane
    Honored Guest
    Its not a problem with parenting, is the neck position always being offset in world y+, so you couldn't effectively roll the controller because of this. For instance parenting the controller to the floor, then flopping it upside down would make the player shorter by the value of the neck offset while he its upside down.
  • Oh I dunno, I have my little scene with no up and down so you rotate 360 degrees freely, and I don't experience any issues.