Unity5 _ How to stabilize a player to its cocpit when looking ahead.

Trinus Forum Forums Developers Unity5 _ How to stabilize a player to its cocpit when looking ahead.

Tagged: ,

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #4846
    KptEmre
    Participant

    At the moment when you change direction of your parent object (ship, plane, space craft etc etc.) camera does not follow the local forward direction but keeps pointing where ever TrinusVR started.

    I realized Reseting view is helping a bit to coming back to localForward but then I can’t look around as I am always reseting

    Or I can disable head tracking too. But again then it is only 3d vision and no headtracking.

    I would love to have an option if the Phone keeps it is forward as local forward and gyro tracks differences from local forward. FaceTrack and IRTrack all does the same thing. When you look ahead you move with your plane etc etc.

    Anyway awesome stuff and very very easy to implement in Unity at least until this bug(feature) 🙂 I can see that you are killing oculus rift 😀

    http://gfycat.com/RingedSecondhandHake

    • This topic was modified 6 years, 5 months ago by KptEmre.
    #4850
    KptEmre
    Participant

    Ok solution was very super easy…

    if (playerHead != null)

    playerHead.localEulerAngles = new Vector3 (pitch, // CHANGE THE eulerAngles TO localEulerAngles
    yaw,
    -sensorData.roll);
    Solution is from the dev of trinus and I have make it work in my prototype.

    To Dev: You may want to add a bool switching between those two alternatives but I think localEuler is like x100 better 🙂

    • This reply was modified 6 years, 5 months ago by KptEmre.
    #4857
    KptEmre
    Participant

    Also not sure why but your Unity assets fx and stuff is not working correctly with Unity 5.3.x . I assume there are some old fx in the compiled game. Well that wouldn’t be such a problem though there are some extra scripts and folders that are not inside trinusLib folder. It is just making clutter in project side.

    Nothing major but you may want to migrate the completed project folder inside of TrinusVR folder.

    Also from my last experiment

    https://gfycat.com/NiceVengefulDalmatian

    • This reply was modified 6 years, 5 months ago by KptEmre.
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.