Making a Hinged Wall

Any Ideas on How to make a better hinged wall?

I’m trying to figure out how to make the wall rotate 90 degrees in either direction, depending on which direction the collision is coming from. Right now it just moves 90 degrees then goes to crap.

help would be appreciated

Below is what I have come up with to give you a visual.


Assuming you have Physics 2 behavioiur on both objects, gave a look into RevoluteJoints or MotorJoints - they can both behave like a hinge.

Right on. Physics Engine just ended up pissing me off so created a few collision events to get it do what I want.