Class: ParticlePositionSystem
Defined in: particles/systems/particle-position-system.ts:12
System that manages and updates particle position.
Extends
Constructors
Constructor
new ParticlePositionSystem(
time):ParticlePositionSystem
Defined in: particles/systems/particle-position-system.ts:18
Creates an instance of ParticlePositionSystem.
Parameters
time
The Time instance.
Returns
ParticlePositionSystem
Overrides
Properties
isEnabled
isEnabled:
boolean=true
Defined in: ecs/types/System.ts:24
Indicates whether the system is enabled.
Inherited from
name
name:
string
Defined in: ecs/types/System.ts:14
The name of the system.
Inherited from
query
query:
Query
Defined in: ecs/types/System.ts:19
The components that this system operates on.
Inherited from
Methods
beforeAll()
beforeAll(
entities):Entity[]
Defined in: ecs/types/System.ts:70
Hook method that is called before running the system on all entities. Can be overridden by subclasses to modify the entities before processing.
Parameters
entities
Entity[]
The entities to be processed.
Returns
Entity[]
The modified entities.
Inherited from
run()
run(
entity):void
Defined in: particles/systems/particle-position-system.ts:34
Runs the particle position system for a given entity. This method updates the rotation based on the particle's rotation speed, and updates the position based on the speed and rotation.
Parameters
entity
The entity to update particle position for.
Returns
void
Overrides
runSystem()
runSystem(
entities):void
Defined in: ecs/types/System.ts:40
Runs the system on the provided entities.
Parameters
entities
Entity[]
The entities to run the system on.
Returns
void
Inherited from
stop()
stop():
void
Defined in: ecs/types/System.ts:77
Stops the system. This method can be overridden by subclasses.
Returns
void