Skip to content

Commit

Permalink
fix(Interaction): remove limiting max angular velocity on throw
Browse files Browse the repository at this point in the history
The Throw section of the Interact Grab script would limit the
`maxAngularVelocity` of the rigidbody to the current `angularVelocity`
of the thrown object, this is from the original SteamVR_TestThrow
script and assuming it is there to lock the rotation of the object
to the initial spin, but it would seem that an object should be
able to continue to spin faster if required.

Also, doing this breaks the `Track_Object` grab mechanic as it prevents
it from being rotated at a normal speed once dropped.
  • Loading branch information
thestonefox committed Sep 13, 2016
1 parent 4ebc1b1 commit 7339f35
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Assets/VRTK/Scripts/VRTK_InteractGrab.cs
Expand Up @@ -331,7 +331,6 @@ private void ThrowReleasedObject(Rigidbody rb, float objectThrowMultiplier)
rb.velocity = velocity * (throwMultiplier * objectThrowMultiplier);
rb.angularVelocity = angularVelocity;
}
rb.maxAngularVelocity = rb.angularVelocity.magnitude;
}

private bool GrabInteractedObject()
Expand Down

0 comments on commit 7339f35

Please sign in to comment.