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

RigidBodyVelocity is zero when using KinematicVelocityBased #127

Closed
Occuros opened this issue Mar 15, 2022 · 0 comments · Fixed by dimforge/rapier#304
Closed

RigidBodyVelocity is zero when using KinematicVelocityBased #127

Occuros opened this issue Mar 15, 2022 · 0 comments · Fixed by dimforge/rapier#304

Comments

@Occuros
Copy link

Occuros commented Mar 15, 2022

When using the RigidBodyType::KinematicVelocityBased rigid body type in bevy_rapier2d the RigidBodyVelocity.linvel seems to be always [0, 0] even when it is moving (by setting the velocity inside a system).

Modifying the velocity has the desired effect, but querying the current velocity doesn't provide the expected value.

If the RigidbodyType is switched to the Dynamic variant, the RigidBodyVelocity.linvel value is properly updated.

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

Successfully merging a pull request may close this issue.

1 participant