cancel
Showing results for 
Search instead for 
Did you mean: 

Throw Angular Velocity in Wrong Direction

mmchickenshack
Protege
In unity using the AvatarGrab example, I've noticed that when throwing things with a spin to it, the rotation will be in the wrong direction as soon as the grabbed item is let go. This happens with my own projects using the OVRGrabber/DistanceGrabbers and also in the Demo scenes.
Has anyone else noticed this? Any input on how to solve this? Has a bug been reported? I couldn't find anything.
Here's the behavior, very noticeable at 0:16:
https://www.youtube.com/watch?v=Upqvy-5egIo
3 REPLIES 3

mmchickenshack
Protege
OK so there seems to be a bug in in the OVRGrabber where the angularVelocity isn't set correctly on GrabEnd().
The fix is to invert the angularVelocity. So
GrabbableRelease(linearVelocity, angularVelocity);

becomes

GrabbableRelease(linearVelocity, -angularVelocity);

mmchickenshack
Protege

The-Boss
Honored Guest
Had same problem... that - worked perfectly... Thank you!