x


Hinge Joint

Hi all,

About the Hinge Joint, i use it to connect to objects together (to allow one of them to rotate around the other one).

When i hit one of them to start rotation, sometimes the two objects get disconnected (as if they were pulled apart from each other) and get reconnected again.

How can i stop the disconnection between the object ?? I want them to stick together whatever happened.

Thanks,

Samer Samy

more ▼

asked Sep 04 '11 at 12:58 PM

samersamy gravatar image

samersamy
16 7 9 9

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

1 answer: sort voted first

The physics joints aren't rigid - they always allow a little spurious movement. Some things you can do to improve this behaviour:

1- Freeze rotations in the other axis, and freeze position in the hinge axis; if your hinge axis is Y, for instance, in the Inspector (Rigidbody/Constraints) freeze rotations in the X and Z axis, and freeze position in the Y axis;
2- If the center object doesn't move, child the rotating object to it, adjust the hinge Anchor to the static object center and let the Connected Rigidbody blank (it will connect to the world) - you can still use the above freezing to get best results;
3- Forget about joints and physics and do it by software - way more complicated, but sometimes is the better solution. It's easier to fake the results than to accurately simulate them.

more ▼

answered Sep 04 '11 at 04:52 PM

aldonaletto gravatar image

aldonaletto
42.5k 16 43 202

Thanks, it really helped

Sep 11 '11 at 08:17 AM samersamy
(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:

x154
x60

asked: Sep 04 '11 at 12:58 PM

Seen: 1961 times

Last Updated: Sep 11 '11 at 08:17 AM