Making a Hinged Wall


#1

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.

ezgif-1-7c722f5cc484


#2

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


#3

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