Trying to restrict movement of player without causing it to fly off the screen So I'm making a three-dimensional danmakufu game in Blender. I'm trying to restrict the player's movement so that someone can't just barrel through the level.

I have currently restricted his movement to a lidless box that is 6 units 'X' by 18 units 'Y' by 2 units 'Z'. All forms of bounding cause the player to be sent flying out of the screen. Can someone help me please? The box moves -.0025 units x per second.

This is only with dynamic or body physics. If using static physics, the player can just go through the barrier.

AND STOP POSTING ANSWERS IN THE COMMENTS

Currently, with the bounding box set to Rigid Body with x-translation enabled and the player as a dynamic object with all degrees of freedom stripped (and neither had collisions on in the first place!) the player is instantly flung off in the direction of positive x, negative y.

Here have some more pictures!
The box is having weird collision with the player, you can probably see this happening if you use "physics visualization".



To solve, switch the physics type of the box to "static" and have it clamp to the travel path that it needs to glide along. I made a working .blend aside from the "clamp to" because I'm not sure of your situation.