I’m playing with the thought to create a game where the player is restricted som some kind of area. I’ve done this before, but then typically the player (space ship) just exploded touching the game area edge so it was faily easy to implement.
This time it’s a bit worse…
It involves an element of sqeezing as there will be small passages as shown below:
I’m not sure, however, if the physics engine is a capable tool for implementing this. I envision the player to have at least two physics elements:
-
One outer that when in contact with the “game area edge” will slow down any movement
-
One inner that will stop the player form going further
But is it possible to make such a thing using the physics engine without risking the player to get stuck? Getting stuck can/will be part of the game play, but I would like to have some control over it.