Rufus31415 / Simple-WebXR-Unity

⭐ Bringing WebXR to Unity 3D ! B-)
https://rufus31415.github.io/webxr/MRTK-HandInteraction/
MIT License
573 stars 82 forks source link

camera always starts at vector3 zero, even if parented and moved to custom position #24

Closed HawkenKing closed 3 years ago

HawkenKing commented 3 years ago

I'm having trouble starting the camera / rig at a designated position. If I move it to X-3 for example, it always starts at X 0.

Tested on Oculus Quest Browser

Rufus31415 commented 3 years ago

Thank you for all your remarks. By design, the camera always starts at Vector3.Zero. I'm thinking of adding OffsetPosition and OffsetRotation properties that will add this amount to the position, to make teleport or initial offset, would that suit you ?

HawkenKing commented 3 years ago

Allowing the camera to be parented by a rig is the usual setup in VR, if this needs additional variables to work it adds complexity to the usual manner of going about things.

Rufus31415 commented 3 years ago

Second camera as now same parent as main camera and its local position is changed by SimpleWebXR