Rigidbody rotation stopping for no reason

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By alskdjfhg

I’ve got a rigidbody that I’m adding torque to, but after a couple seconds it stops dead. It does this when the damping is both 0 and -1 and does it in all directions.

Could it have something to do with the angular velocity being around 0.005 or that I’m applying the forces from a function called from_process instead of_integrate_forces or something?

It certainly would help to see the relevant parts of your code.

njamster | 2020-08-01 18:19

the part that adds the force is just

if Input.is_action_pressed("Yaw_Left"):
	add_torque(to_global(Vector3(0,100,0))-global_transform.origin)

alskdjfhg | 2020-08-02 05:24

also the whole project zipped up is at
GitHub - frenchma/Game-stuff

alskdjfhg | 2020-08-02 06:11

:bust_in_silhouette: Reply From: dirkk0

Disable the ‘can_sleep’ option on the RigidBody.