Is ther some way to make a rigidbody stop moving, but still rotate? I'm wanting to make something like a modern sledge and went you press a key the left or right rigidbody(the things that make the sledge rotate) stops moving but it rotates with the help of a fixed joint connected to the center part of the sledge. Is there some way to do this?
Answer by Bob5602
Jan 14, 2011 at 07:42 PM
you can always stop the moving by setting rigidbody.velocity = Vector3.zero. Is that what you're looking for?
that's just what i was searching for!!
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a user guide.
If you are a new user, check out our FAQ for more information.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
For troubleshooting common problems with Unity 5.x Editor (including Win 10).
Answers and Comments
No one has followed this question yet.
How to check if an object has stopped moving?
Rigidbody Disable Velocity/Movement?
Rigidbody slowing right down when colliding only when I'm rotating the velocity to always be going forward
Modify rotation based on passing rigidbody's velocity and direction?
Velocity powered rigidbody on a moving platform without parenting.