Merge pull request #12112 from hyperlogic/bug-fix/oculus-touch-angular-velocity-rc62

RC62 - Oculus Touch: More accurate spin on thrown objects
This commit is contained in:
John Conklin II 2018-01-09 09:22:23 -08:00 committed by GitHub
commit 8d416133b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;