Weird problem w/ RB and Hinge Joint.

I have a doorway that contains double doors where the frame is a single RB with the 2 doors attached and using the frame as there Connected Body. The settings for these doors are pretty much the same and when force is applied they swing properly but one of the doors acts as expected where the other door is softly bouncing at an angle.

From a settings standpoint, the frame is set to be Kinematic, the door acting properly is set as the following:

anchor - 0,0,0
axis - 0,90,0
useSpring - false
useMotor - true
useLimits - true

the door that is not acting properly has the following settings:

anchor - 0,0,0
axis - 0,-90,0
useSpring - false
useMotor - true
useLimits - true

Both doors seem to have appropriate values to swing the door properly when force applied.

Any ideas?

Regards,

– Clint

The axis value is a direction. So you should be able to set both values to:
0, 1, 0

The important question really is, what are the limits set to?

Cool thanks for that. :wink:

Limits for the “good” door:
-1, 90, 0, 0, infinity, infinity

Limits for the “bad” door:
-1, 90, 0, 0, infinity, infinity

Thanks!

– Clint

Assuming the doors swing opposite directions (as double-doors do), the upper and lower limits on one will need to be flipflopped to -90 and 0.

Thanks StarManta…

The doors themselves are opening and closing just as I would like them to. The problem revolves around the bouncing of the door.

Regards,

– Clint

Okay based on some insight from Joe, looks like the problem was with the colliders and the two doors and or the frame were colliding a bit with each other causing on of the doors to bounce. I adjusted the collider for the doors and it works as expected now.

Thanks for all the help!

– Clint