mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-07 20:34:32 +02:00
Oculus Touch: More accurate spin on thrown objects
The internal computation of angular velocity was incorrect. Apparently, the ovrPoseStatef.AngularRotation is not in sensor frame but local to the controller rotation.
This commit is contained in:
parent
f4c38b91b3
commit
dd0e57026e
1 changed files with 1 additions and 1 deletions
|
@ -262,7 +262,7 @@ controller::Pose ovrControllerPoseToHandPose(
|
|||
pose.translation = toGlm(handPose.ThePose.Position);
|
||||
pose.translation += rotation * translationOffset;
|
||||
pose.rotation = rotation * rotationOffset;
|
||||
pose.angularVelocity = toGlm(handPose.AngularVelocity);
|
||||
pose.angularVelocity = rotation * toGlm(handPose.AngularVelocity);
|
||||
pose.velocity = toGlm(handPose.LinearVelocity);
|
||||
pose.valid = true;
|
||||
return pose;
|
||||
|
|
Loading…
Reference in a new issue