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

apply_force has no effect #107

eldyer opened this Issue May 20, 2018 · 2 comments


None yet
2 participants

eldyer commented May 20, 2018

Calling apply_force on a body seems to have no effect.

It appears that this method modifies the external_forces value of a body - which is set to zero in the step method (as part of clear_dynamics).


This comment has been minimized.

eldyer commented May 27, 2018

Update: apply_force works fine when called inside a ForceGenerator implementation. So I guess you aren't supposed to call it directly on a body? In this case this issue can be closed.


This comment has been minimized.


sebcrozet commented May 27, 2018

Sorry for the late answer, I somehow did not see the first notification.

Yes, apply_force does not work outside of a ForceGenerator because all forces are reset at the beginning of each timestep as you found out. Though I think it would be useful to make apply_force have an effect even when called outside of the force generator, at least to avoid people getting confused.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment