I’m trying to make a simple psychological horror game at BGE, but I found a problem that I couldn’t find a solution anywhere i.e. interaction with doors. It may seem simple, but a system that comes to mind is a door that only opens in one direction (as in most houses), that is, there are differences when interacting with the same door on two sides (the side that pushes and the pulling side). However, when I try to do this by animating the door, the side that the player is supposed to pull the door on, the object ends up going through the character or pushing the player away. The solution I found, would be for the door to pause its animation of opening when it collides towards the player, causing the player to move away from the door so that it opens fully, giving way to the character. Avoiding clipping or collision bug. However, I can’t seem to find a way to do that.
I would be more thanked if anyone can help me with this problem via logic bricks. I’m using UPBGE v0.2.5 (Blender 2.79.7) to build the game. However I will provide a .blend with a simple FPS setup character and a door on the wall, for anyone who can build, I would be very grateful. Thanks for your presence.