x


Serializing Joint State

I'm having serious difficulty writing a script to serialize the state of two rigidbodies connected by a joint.

The problem is that as well as the fields contained in the API, joints seem to contain hidden state during simulation which can be neither read nor written.

For example: Suppose I have two objects connected by a HingeJoint and one is subjected to a force parallel to the axis of rotation. This distorts the joint (which is not perfectly rigid of course). If I serialize this system and then instantiate it from the stored state it will either deserialize in a different position or in the same position but with the two halves of the joint now permanently in that relationship to each other (ie. no restoring force will be applied by the system).

Is there any way to do what I'm trying to do? Or, failing that, how should I work around it if I need to serialize complicated systems involving many joints and rigidbodies?

more ▼

asked Jun 03 '11 at 04:05 PM

dom gravatar image

dom
31 1

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

0 answers: sort voted first
Be the first one to answer this question
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:

x1882
x181
x147

asked: Jun 03 '11 at 04:05 PM

Seen: 242 times

Last Updated: Jun 03 '11 at 04:05 PM