Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commitb42cf47139

README.md

inputSim.drive

The frame-by-frame driving the toolbox's goal verbs share: goTo, aimAt, jump and playthrough.

It finds the body a drive moves (the local player's body, or the one a caller names), resolves a goal (an entity or a world point), and presses one device class every frame: the controls by name ("action"), the keyboard and mouse ("keyboard") or a pad ("gamepad"). A walk pushes the move control toward its goal relative to the live camera, follows the world's navigation graph or a given path, jumps at the lip of a gap or a ledge, and learns from where the body actually goes how its controller maps a push, so a controller whose controls are not camera-relative still arrives. A turn pushes the look control and learns how far one push turns the camera.

Every verb answers with one compact result: whether its goal was met, and when it was not, a reason and a message naming what happened.