We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11a3c78 commit 98ef32dCopy full SHA for 98ef32d
1 file changed
OSVR-Unity/Assets/OSVRUnity/src/VRViewer.cs
@@ -79,9 +79,9 @@ void OnDisable()
79
80
//Updates the position and rotation of the head
81
public void UpdateViewerHeadPose(OSVR.ClientKit.Pose3 headPose)
82
- {
83
- transform.localPosition = Math.ConvertPosition(headPose.translation);
84
- transform.localRotation = Math.ConvertOrientation(headPose.rotation);
+ {
+ cachedTransform.localPosition = Math.ConvertPosition(headPose.translation);
+ cachedTransform.localRotation = Math.ConvertOrientation(headPose.rotation);
85
}
86
87
//Culling determines which objects are visible to the camera. OnPreCull is called just before this process.
0 commit comments