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

Relative orientation forces? #97

Closed
expenses opened this issue Nov 17, 2017 · 1 comment
Closed

Relative orientation forces? #97

expenses opened this issue Nov 17, 2017 · 1 comment
Milestone

Comments

@expenses
Copy link

Hi, currently stuff like RigidBody::append_lin_force and RigidBody::append_force_wrt_point append a force with respect to the world orientation, not the orientation of the body. This means that even if the object is rotating, it will still accelerate in one direction. Do you think it would be possible to add in forces relative to the orientation of the rigid body?

@sebcrozet sebcrozet added this to the v0.10 milestone Feb 2, 2019
@sebcrozet
Copy link
Member

This has been added to nphysics v0.10. See the new force application methods (in particular those with "local" in their names): https://www.nphysics.org/rigid_body_simulations_with_contacts/#one-time-force-application-and-impulses

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