Skip to content

teleportActor

teleportActor(world, entity, fall?): void

Defined in: packages/engine/src/gameplay/physics/actors.ts:151

Puts a walker’s body where its transform now stands, as a jump rather than a walk: the next step would otherwise sweep the body from where it stood toward the transform, and stop at whatever lies between. The body is built again at once, at the transform’s own height, so the next step sweeps from there: built on that step, it would stand wherever the step’s movement had already taken her, through anything in the way. The height and the fall are the caller’s: a correction takes both from the room, which may have her on a rock above the terrain or halfway through a jump. So is whether her floor was read: a correction passes it read, since the room’s step that stood her there read it, so her replay skips the probe the room’s steps skip. Left unread, her next step probes it.

Parameter Type Default value
world World undefined
entity Entity undefined
fall ActorFall standing

void