Stop moving rigidbody but don't stop rotating

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?

more ▼

asked Jan 14 '11 at 07:37 PM

Paul 6 gravatar image

Paul 6
41 12 12 16

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

you can always stop the moving by setting rigidbody.velocity = Vector3.zero. Is that what you're looking for?

more ▼

answered Jan 14 '11 at 07:42 PM

Bob5602 gravatar image

588 15 17 29

that's just what i was searching for!!

Jan 14 '11 at 11:06 PM Paul 6
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments



asked: Jan 14 '11 at 07:37 PM

Seen: 3742 times

Last Updated: Jan 14 '11 at 07:37 PM