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 site navigation 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.
Answers and Comments
No one has followed this question yet.
Modify rotation based on passing rigidbody's velocity and direction?
Does Rigidbody.freezRotation allow transform.Rotate ?
Rotating a moving object
Bending physics - turning rigidbody.velocity 90 degrees
How to make rigidbody rotation more unstoppable