Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

useFootsteps

useFootsteps(entity, onStep, options?): void

Calls onStep each time one of entity’s drawn feet lands on the ground, read off the posed body each frame on the page: a footstep’s dust, sound or print. It reads a posed body, an avatar or a model with a rig; the placeholder, which plays no clip, steps nowhere, and so does a body with no foot it can find or one further than maxDistance from the camera. A jump’s landing lands both feet.

Parameter Type
entity Entity
onStep (footstep) => void
options FootstepsOptions

void