hi to all,
I have player going fast with a force. I am using rigidbody.AddForce to mov it. Now i wish to stop it suddenly. Like we use breaks in car games. How can i do that. Any code reference to do that.
thanks in advance
unityboy
hi to all,
I have player going fast with a force. I am using rigidbody.AddForce to mov it. Now i wish to stop it suddenly. Like we use breaks in car games. How can i do that. Any code reference to do that.
thanks in advance
unityboy
Try this:
Another idea is to change your Physics.velocity to 0 or x,y, and z it will stop all rigid body movement.