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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
entity |
Entity |
onStep |
(footstep) => void |
options |
FootstepsOptions |
Returns
Section titled “Returns”void