All examples · Physics · As Markdown, for AIs

Jump-through platforms

What this example shows

Platforms made of bodies, solid only on top (solidSides: { up: true }): jumped up through from below, stood on from above. A body with an open side stops only what comes in through a solid one, so the hero is never snapped up onto a platform it is still inside.

Down and Z drops through: for a moment the hero collidesIf the other is not a platform. Landing is touching.down this step and not wasTouching.down the step before, and onEnter says how hard it came down: the hero squashes by that much. Arrows to move, Z to jump.

Starting
Starting
—