Skip to content

five-on-it / packages/sim/src/drag / dragStep

Function: dragStep() ​

dragStep(sim, eid): void

Defined in: packages/sim/src/drag.ts:122

One tick of a dragger (the character system's, before the physics step): it lets go when it or the body can drag or be dragged no more (see the module documentation); else the body, farther than a rope's length, slides toward the point a rope's length from it.

Parameters ​

sim ​

SimWorld

eid ​

number

Returns ​

void