Jondolf/avian

LockedAxes break ExternalTorque

unpairedbracket opened this issue · 0 comments

If an entity has a LockedAxes component and has any of the rotational axes locked, applying an ExternalTorque to that entity has no effect (even if the axis of the torque applied is not one of the locked axes).

I've adapted the reproduction from issue #474 to demonstrate. I had thought this problem was introduced in the fix to that issue, but in reproducing I discovered that versions of it exist in 0.1.0, 0.1.1 and 0.1.2. The Cargo.toml includes an option to use my proposed fix branch, which corresponds to PR #486. The reproduction can be found here: https://github.com/unpairedbracket/av-repro

I've kind of done the issue reporting/reproduction/PR fix backwards here - sorry it's taken so long to put a reproduction together!