-
-
Notifications
You must be signed in to change notification settings - Fork 132
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
documentation incorrect: apply_force_at_point mentions local points, but must be world space #428
Comments
Disclaimer: just passing by and saw this issue. From what I see in the video it looks like the forces applied aren't rotated with the cube like gizmos would show. Then I've look inside So to my inexperienced eye it should either be all world coordinates or all local coordinates. |
This comment was marked as resolved.
This comment was marked as resolved.
Actually I would try first with all world-space values as the other methods like |
I thought about that and came to the same on conclusion. Using all world space sounds like it could work. |
I implemented this simple fix and it seems to work perfectly. It also makes sense in theory. So, the issue seems to be a mistake in the documentation. |
Thanks for your help, @kmotyka-zx! Appreciate it. |
fix documentation for apply_force_at_point. fixes #428 no code-changes at all, so no breaking changes. --------- Co-authored-by: Joona Aalto <[email protected]>
i'm trying to implement a rigidbody that is operated by individual smaller jet engines. currently i do this by applying forces at points.
i reproduced the problem in a minimal project, a heron steam engine. this mechanism should be possible in the current system, correct?
i tried to implement it, but it looks like something is off. maybe my code is wrong? or maybe the torque is actually incorrectly handled in avian?
schematic:

from popularmechanics.com
however, instead this happens: the body finds an equilibrium at some arbitrary rotation. (the arrow symbolizes how the forces are applied. they are the heron jet exhausts. it should result in continuus rotation.)
herons.steam.engine.unexpected.result.mp4
full code
full code example
main.rs
:cargo.toml
The text was updated successfully, but these errors were encountered: