OSVR / OSVR-Unity

Package for authoring OSVR experiences with Unity.
Apache License 2.0
99 stars 38 forks source link

Rendermanager recenter #107

Closed DuFF14 closed 8 years ago

DuFF14 commented 8 years ago

Adds functionality for calling SetRoomRotationUsingHead() and ClearRoomToWorldRotation() on the RenderManager path. Created a sample script which "recenters" on a key press and added that to an empty gameobject in the VRFirstPerson.unity scene. Perhaps this gameobject should be a prefab?

DuFF14 commented 8 years ago

Should I add a "Recenter" prefab with the SetRoomRotationUsingHead.cs sample script?

JeroMiya commented 8 years ago

Yes, a prefab would be good here. Otherwise this looks good.

DuFF14 commented 8 years ago

Added the prefab, hopefully "Recenter" is a suitable name.

rpavlik commented 8 years ago

Was there a reason this was only on the render manager path? Just curious as I write up the changelog

DuFF14 commented 8 years ago

It was already working on the non-RM path. Prefab works for both.