![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | Sir_Skurpsalot |
I’m trying to get some rigidbodies to calm down and stop moving /jittering so much once they hit the ground. I am using them for things like grenades, spent brass, empty magazines. All I really need is for them to behave like the grenades in good old quake, where once their linear velocity is 0, they freeze and do not move or rotate at all anymore. In quake there was two simple lines of code that caused the angular velocity to be set to 0 0 0 if the linear velocity is 0 0 0, but writing the equivalent in Godot does not seem to work. I feel the answer may lie in using _integrate_forces and changing properties of the PhysicsBodyDirectState but I do not understand how to access a PhysicsBodyDirectState. Any ideas?