This week’s prototype is about using physics simulations to move and climb on boxes.
The objective was to create puzzles around actions that the character can do with the boxes. The player needs to traverse the map. To do that he move and climb on top of boxes. Because the environment is physically simulated, a seemly simple task like that can becomes unpredictable. Boxes can tip over, and jumps can respond differently depending on small variations on the player input.
An interesting detail: the character has no constraint in any rotation axis, he keeps upright by the application of torque forces when his feet or body is on the ground. To execute that without jitters or bounces, I end up applying a PID Controllers to several parts of the code.