x


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, 2011 at 07:37 PM

Paul 6 gravatar image

Paul 6
41 33 23 27

(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, 2011 at 07:42 PM

Bob5602 gravatar image

Bob5602
603 39 31 46

that's just what i was searching for!!

Jan 14, 2011 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

By RSS:

Answers

Answers and Comments

Topics:

x3587
x3035
x550
x287
x213

asked: Jan 14, 2011 at 07:37 PM

Seen: 4011 times

Last Updated: Jan 14, 2011 at 07:37 PM