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.
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).
To help users post good questions and use the site effectively we have posted a user guide. Please check it out.
Answers and Comments
No one has followed this question yet.
Rotation based on Velocity returning 0,0,0 rotation
Prevent rigidbody from colliding
Rigidbody Disable Velocity/Movement?
How to check if an object has stopped moving?
Stopping rotation of rigidbody