Is it possible to create a one-way door in a shut position that can be physics enabled?
So ive tried to create a basic hinged door that i want to only open in one direction. Ive set it so there is a trigger on the other side that when it detects the door it will disable its physics and the player can re-enable physics with E. What i would like is a way to set the door in a shut position but allow the player to open it using the physgun on left click. Any suggestions on a good one way physics enabled door with a shut position would be great. can i set the phys constraint to limit the rotation to just one side of the door?
EDIT so i just had a thought, what about switching the physconstraint to lock, would that be possible?
So to partly answer my own question, and this just to help anyone aiming for the same thing. I set up a large trigger on the other side named Doorstop. Upon collision it checks to see if it was the door and if it was it sets the transform to the value it got at begin play, pretty much the closed position. Upon being in trigger pressing E releases the door and allows player to grab it with phys handle component i previously set up
answered Apr 06 '14 at 12:26 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here