A gravity switching box puzzle game:
http://www.youtube.com/watch?v=bTxw4jFvVvA
As you can see, you can only change gravity towards the platform you are touching. To make this possible I had to add a SetGravity method in b2World, which also wakes up all bodies. I've also added Enable/Disable gravity functions on bodies, because otherwise it's very hard to make a good platformer jump feeling, and it will maybe be useful in some puzzles.
http://www.youtube.com/watch?v=bTxw4jFvVvA
As you can see, you can only change gravity towards the platform you are touching. To make this possible I had to add a SetGravity method in b2World, which also wakes up all bodies. I've also added Enable/Disable gravity functions on bodies, because otherwise it's very hard to make a good platformer jump feeling, and it will maybe be useful in some puzzles.