I'm making a simple thing that makes the player jump and then while in the air (whenver is_falling is true) if they press the jump button it will rotate them a little bit. I'm confused because the rotation of the rigid body will snap back to perfectly straight whenever I let go of the jump button in the air. Also if I hold jump the rotation is being set to whatever I have the value as instead of adding it to make it rotate. Can anyone explain this to me please?
#Confused on rotation
1 messages · Page 1 of 1 (latest)
You aren't really supposed to modify things like linear_velocity and rotation directly on a rigid body. You should use the force and torque methods
If you want precise control, you should use a character body instead
ohh ok I'll try those. Thank you
For rigid bodies you have to apply a rotational force, as rigidbodies only use the physics engine