Hey guys,
a, hopefully, short and easy question this time. Ive been going thought the documentation on Rigidbody but I cannot seem to find an easy way to remove all velocity on a gameobject.
I've tried, of course, setting rigidbody.velocity to zero. This just seems to add zero to the current velocity though.
What I want is to respawn an object, which works, but I want all old velocity removed, how would I do this easily?
Edit for future reference:
Using rigidbody.velocity = Vector3.zero; does reset the velocity, but remember to also use rigidbody.angularVelocity = Vector3.zero to remove the spin.