how do I stop a car from rolling after stopping

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

When I spawn or break the car to a stop the car moves slowly forward. How do I get it to stop immediately?

try :

set_can_sleep(stopped)
set_sleeping(stopped) 

“stopped” being a variable thats turned to true, when the car has stopped.
this can also be done without code in the editor in the rigidbody properties.

dari0us | 2020-10-06 07:56

:bust_in_silhouette: Reply From: Roshi

How do you move your car ?

Maybe you try something like :

linear_velocity = Vector3() 

or

 velocity = Vector3()