Skip to main content

Function: createPhysicsEcsSystem()

createPhysicsEcsSystem(physicsWorld, time): EcsSystem<[PhysicsBodyEcsComponent, PositionEcsComponent, RotationEcsComponent], void>

Defined in: physics/systems/physics.system.ts:21

Creates an ECS system to handle physics.

Parameters

physicsWorld

PhysicsWorld

The physics world to step and synchronize with the ECS.

time

Time

The time instance used to determine the simulation step size.

Returns

EcsSystem<[PhysicsBodyEcsComponent, PositionEcsComponent, RotationEcsComponent], void>