Is it possible to have plane where you can go trough but you can’t go back like a single sided wall?
Thank you for your time.
P
Is it possible to have plane where you can go trough but you can’t go back like a single sided wall?
Thank you for your time.
P
I don’t think so. But you could have a plane set to no collision first and after going through replace it with a plane set to static. Just an idea!
You could move the plane down, say, 1000 units, then when the player is on the opposite side, move it back up. If you need to have this for more than one object (like if you have multiple players, or if you need enemies to do it too), then you could use the rayCast function in the object to test a certain direction (test whatever direction is forward for a wall). If the plane is only one face, then (hopefully) it will only detect it if you’re on the outside (or normal-out side). However, I haven’t tested the raycast method on one-sided planes.
I did something similar with the ray sensors with my solution, but instead of moving the object, i used the replace mesh actuator. I only used the change phys option. Then, I created a mesh, with no verticies (In the way at least, it crashed when the mesh had no volume at all. Then, hooked it up so that the ray sensor flipped the object’s phys when you where below it, and flipped it back when you where on top.