x


How do I rotate a jointed rigidbody 180 degrees on a double click of one of the model parts?

Hi, I have a 2D 'shadow puppet' rigidbody character made from multiple hinged objects, in a 2D space and I need to flip / rotate the object when I double click the head. I can detect doubleclick working, but can't do the flip. I think I know I need to apply a TORQUE force to a target.

I've experimented with: configurable joints; triggering an animation (making the object temporarily 'kinetic'; disabling physics (or not) and transforming the body parts;

As it should work like a shadow puppet - I want it to make a transition between 0 and 180 and back on a double click of one of the elements (so it faces left then transitions to facing right), physic behaviours are while turning are desirable. I do have a configurable joint on one body part to restrict / lock Angular Motion (on X and Z) and wondering if the constraint will stop rotating it programmatically?

Thanks in advance, Ian

image

more ▼

asked May 20 '10 at 07:44 PM

iBoy gravatar image

iBoy
1 1 1 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:

x2162
x1868
x1278
x102
x13

asked: May 20 '10 at 07:44 PM

Seen: 1227 times

Last Updated: May 20 '10 at 07:44 PM