Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rigidbody tracking grab mechanic has positional and rotational lag #1970

Closed
thestonefox opened this Issue Apr 2, 2019 · 2 comments

Comments

Projects
1 participant
@thestonefox
Copy link
Member

thestonefox commented Apr 2, 2019

Environment

  • Source of VRTK: Github
  • Version of VRTK: V4 beta
  • Version of the Unity software: 2018.3.11f1
  • Hardware used: Oculus Rift
  • SDK used: Unity.XR

The Rigidbody object follow has a lot of lag when following the position and rotation of the controller.

Even though the code is the same logic as in V3, something is missing causing the issue below.

Expected Behaviour (as seen in v3 Track Object)

good

Unexpected Behaviour (as seen in v4 rigidbody tracking)

bad

@thestonefox thestonefox added the bug label Apr 2, 2019

@thestonefox thestonefox added this to Ready in VRTK Apr 2, 2019

@thestonefox

This comment has been minimized.

Copy link
Member Author

thestonefox commented Apr 2, 2019

The issue is by default Unity limits a rigidbody angular velocity to 7mps
https://docs.unity3d.com/ScriptReference/Rigidbody-maxAngularVelocity.html

This is not fast enough for dealing with controller rotations.

Unity offer a way of increasing the maxAngularVelocity of a rigidbody but not via the inspector (because that would make sense) instead it has to be applied via code:

.maxAngularVelocity = float.MaxValue;

is what is required to be added (somewhere) to fix this.

@thestonefox

This comment has been minimized.

Copy link
Member Author

thestonefox commented Apr 5, 2019

Will be fixed with #1976

VRTK automation moved this from Ready to Done Apr 9, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.