Skip to content

newbie question regarding torque #259

Discussion options

You must be logged in to vote

Hello. Thanks for your question.

This is expected because you are applying a local force along the local x direction of your body and at the same time a local torque around the z axis. Therefore, the torque that you apply will rotate your body. Next, when your local force will be applied to the local x axis of the body, this local axis have been rotated in the world because of the previous body rotation. Therefore, this local x axis will have a component in the direction of the world-space y axis. That's why the y component of the body position changes.

Remember that the local-space is attached to your rigid-body and will rotate with it if the body rotates.

What you probably want instead …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by RallyTronics
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants