Skip to content

@relu-interactives/spatial-ecs


@relu-interactives/spatial-ecs / index / PhysicsSyncSystem

Class: PhysicsSyncSystem ​

Defined in: systems/PhysicsSyncSystem.ts:416

Implements ​

Constructors ​

Constructor ​

ts
new PhysicsSyncSystem(options?): PhysicsSyncSystem;

Defined in: systems/PhysicsSyncSystem.ts:438

Parameters ​

ParameterType
options?{ isEditor?: boolean; }
options.isEditor?boolean

Returns ​

PhysicsSyncSystem

Properties ​

PropertyModifierTypeDefault valueDescriptionDefined in
runsWhilePausedreadonlytruetrueBodies stay in step with the components while paused, so one spawned or removed in a pause menu is right the moment the game resumes. Only the simulation stops: nothing feeds the accumulator, so resuming can't burst.systems/PhysicsSyncSystem.ts:422
lastStepspublicnumber0Physics steps taken on the last frame (0 while paused or in the editor).systems/PhysicsSyncSystem.ts:432

Methods ​

update() ​

ts
update(world, deltaTime): void;

Defined in: systems/PhysicsSyncSystem.ts:521

Parameters ​

ParameterType
worldWorld
deltaTimenumber

Returns ​

void

Implementation of ​

EcsSystem.update


dispose() ​

ts
dispose(world): void;

Defined in: systems/PhysicsSyncSystem.ts:823

Parameters ​

ParameterType
worldWorld

Returns ​

void

Implementation of ​

EcsSystem.dispose