Skip to content

MoveHandler

Defined in: packages/threeplay/src/plugins/transform/types.ts:34

Contract for movement-controlling components (character, body): a component that defines applyMove receives every move() call instead of pos changing directly.

applyMove(delta, velocity): void

Defined in: packages/threeplay/src/plugins/transform/types.ts:36

delta is the displacement for this frame, velocity the requested units/s.

Vector3

Vector3

void