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

useDamping prevents initial movement #3888

Closed
samme opened this issue Aug 3, 2018 · 1 comment
Closed

useDamping prevents initial movement #3888

samme opened this issue Aug 3, 2018 · 1 comment

Comments

@samme
Copy link
Contributor

samme commented Aug 3, 2018

https://codepen.io/samme/pen/GBdPJp?editors=0010

When an Arcade Body is created with velocity, drag, and useDamping=true, its velocity is reduced to zero during the first step.

It happens because body.speed, initially 0, is used in computeVelocity().

@photonstorm
Copy link
Collaborator

Thank you for submitting this issue. We have fixed this and the fix has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.

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

2 participants