0 votes

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?

in Engine by (26 points)

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

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)

also the whole project zipped up is at
https://github.com/frenchma/Game-stuff.git

1 Answer

0 votes

Disable the 'can_sleep' option on the RigidBody.

by (26 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.