All examples · Physics · As Markdown, for AIs

Lifts and platforms

What this example shows

A 'kinematic' retro body is driven by the game, by its velocity, and nothing pushes it back: a lift, a platform on rails. Whatever stands on it is carried, across and down, and pushed up when it rises. A crate left on a platform rides it too: nothing about the hero is special.

The third platform is moved by hand, by changing its object's position every frame. A retro body is where its object is, so that works as well, and it carries what stands on it all the same. Arrows to walk, up to jump.

Starting
Starting
—