x


relation between hingeJoint's "target velocity" and the object's angularVelocity

there's an object. it has a HingeJoint component. now, as I am sure "targetVelocity" property in hingeJoint isn't the same as the object's rigidbody.angularVelocity. I imagine it more as being some kind of relation between the object that has the "hingeJoint" and the object that this hingeJoint is connected to. some kind of relation of those objects' "rigidbody.angularVelocity" properties. at least that's what I am looking for. if I have a limp hingeJoint, I want to monitor the joint's "angularVelocity relation" between those bodies and save them to an array, so that, later on, I could input variables from that array to the joint's "targetVelocity" so that the joint behaves exactly as it was during the time when we were "saving" those properties to an array.

how to compute that "angularVelocity"s relation of those objects?

more ▼

asked Dec 19 '10 at 01:05 AM

dot gravatar image

dot
525 74 84 90

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

1 answer: sort voted first

If I understand your question, you just need to query hingejoint.velocity. See http://unity3d.com/support/documentation/ScriptReference/HingeJoint-velocity.html

more ▼

answered Dec 28 '10 at 04:10 PM

Tim gravatar image

Tim
31 4 4 7

wow. so simple. thanks!

Dec 29 '10 at 08:53 AM dot
(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:

x58

asked: Dec 19 '10 at 01:05 AM

Seen: 995 times

Last Updated: Dec 19 '10 at 01:05 AM