@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 ​
| Parameter | Type |
|---|---|
options? | { isEditor?: boolean; } |
options.isEditor? | boolean |
Returns ​
PhysicsSyncSystem
Properties ​
| Property | Modifier | Type | Default value | Description | Defined in |
|---|---|---|---|---|---|
runsWhilePaused | readonly | true | true | Bodies 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 |
lastSteps | public | number | 0 | Physics 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 ​
| Parameter | Type |
|---|---|
world | World |
deltaTime | number |
Returns ​
void
Implementation of ​
dispose() ​
ts
dispose(world): void;Defined in: systems/PhysicsSyncSystem.ts:823
Parameters ​
| Parameter | Type |
|---|---|
world | World |
Returns ​
void

