File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Assets/MixedRealityToolkit.Services/InputSystem Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -194,9 +194,9 @@ public override void OnPreRaycast()
194194 // Update gaze info from stabilizer
195195 if ( stabilizer != null )
196196 {
197- stabilizer . UpdateStability ( newGazeOrigin , gazeTransform . rotation ) ;
198- newGazeOrigin = stabilizer . StablePosition ;
199- newGazeNormal = stabilizer . StableRay . direction ;
197+ stabilizer . UpdateStability ( gazeTransform . localPosition , gazeTransform . localRotation * Vector3 . forward ) ;
198+ newGazeOrigin = gazeTransform . parent . TransformPoint ( stabilizer . StablePosition ) ;
199+ newGazeNormal = gazeTransform . parent . TransformDirection ( stabilizer . StableRay . direction ) ;
200200 }
201201
202202 Vector3 endPoint = newGazeOrigin + ( newGazeNormal * pointerExtent ) ;
You can’t perform that action at this time.
0 commit comments