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

Shaky body when using api.velocity.set() with fixed velocity #239

Open
tommhuth opened this issue Jul 14, 2021 · 0 comments
Open

Shaky body when using api.velocity.set() with fixed velocity #239

tommhuth opened this issue Jul 14, 2021 · 0 comments

Comments

@tommhuth
Copy link

tommhuth commented Jul 14, 2021

See the basic demo where a sphere moves at a fixed pace (using api.velocity.set) along a plane: https://codesandbox.io/s/shaky-986lm?file=/src/index.js. the sphere will every now and then exhibit some shakiness, as if the position or velocity is not stable. When the movement of the sphere is hardcoded the behaviour is especially noticeable, and the sphere is clearly skipping around, before becoming stable again.

Is setting the velocity like this a bad idea?

@tommhuth tommhuth changed the title Shaky body when using api.velocity with fixed velocity Shaky body when using api.velocity.set() with fixed velocity Jul 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant