Attention | Topic was automatically imported from the old Question2Answer platform. | |
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