Closed Kulasko closed 2 years ago
Thanks for the report. I suspect it may be more a problem in rapier than in heron.
Can you try to see what behavior you get when using directly rapier
, or when using bevy_rapier
?
I have tried reproducing the behaviour using bevy_rapier3d
by just converting the rotation quaternion to a scaled axis. I did not observe the erroneous behaviour in that version.
@Kulasko can you tell me if the problem is still present on heron version 4.0.0-alpha.1
?
Both my test case and my actual project now work like intended. Thank you for your work!
Hello there, I noticed a problem which currently forces me to use dynamic
RigidBody
s for turnable turrets, which isn't ideal. I wrote this test program:When a
RigidBody::Dynamic
is used, the cube correctly turns in the direction of the target position. When aKinematicVelocityBased
body is used, the cube additionally moves in an elliptical pattern until it arrives at its target rotation. Note that theKinematicVelocityBased
body actually turns correctly when placed at the origin of the world [0, 0, 0].I could be that I just understood this type of
RigidBody
incorrectly or I did something wrong in my rotation code, if so, please let me know.