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

Is it possible to get the force of body directly? #350

Open
csycs opened this issue Oct 30, 2019 · 3 comments
Open

Is it possible to get the force of body directly? #350

csycs opened this issue Oct 30, 2019 · 3 comments

Comments

@csycs
Copy link

csycs commented Oct 30, 2019

I want to get the force of body, how do i get this value?

@jebito
Copy link

jebito commented Nov 1, 2019

body.force[0] for "X" and body.force[1] for "Y"

@csycs
Copy link
Author

csycs commented Nov 4, 2019

but body.force will be reset after every step. Now, we get the force through constraint.equations.multiplier. Thank you~

@jebito
Copy link

jebito commented Nov 5, 2019

Thanks for the info

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