ParticleEmitter
Particle system with a fixed capacity, configurable spawning, and optional texturing.
Module: atlas/particle
Particle system with a fixed capacity, configurable spawning, and optional texturing.
Declaration
export class ParticleEmitter extends GameObject { ... }Extends: GameObject
Constructors
constructor(maxParticles: number);Properties
settings
settings: ParticleSettings;Methods
attachTexture
Attaches a texture to this object.
override attachTexture(texture: Texture): void;setColor
Updates the color used by this object.
setColor(color: Color): void;enableTexture
enableTexture(): void;disableTexture
disableTexture(): void;setPosition
Sets the position to an absolute value.
override setPosition(position: Position3d): void;move
Translates by the supplied offset.
override move(position: Position3d): void;getPosition
getPosition(): Position3d;setEmissionType
setEmissionType(type: ParticleEmissionType): void;setDirection
Sets the particle emission direction.
setDirection(direction: Magnitude3d): void;setSpawnRadius
setSpawnRadius(radius: number): void;setSpawnRate
setSpawnRate(rate: number): void;setParticleSettings
Replaces the emitter's particle settings and sends them to the runtime.
setParticleSettings(settings: ParticleSettings): void;emitOnce
emitOnce(): void;emitContinuous
emitContinuous(): void;startEmission
Starts particle emission.
startEmission(): void;stopEmission
Stops spawning new particles.
stopEmission(): void;emitBurst
Requests emission of the specified number of particles.
emitBurst(count: number): void;setRotation
Unsupported for particle emitters; the runtime method does nothing.
override setRotation(rotation: Rotation3d): void;setScale
Unsupported for particle emitters; the runtime method does nothing.
override setScale(scale: Scale3d): void;lookAt
Unsupported for particle emitters; the runtime method does nothing.
override lookAt(target: Position3d, up?: Normal3d): void;rotate
Unsupported for particle emitters; the runtime method does nothing.
override rotate(rotation: Rotation3d): void;scaleBy
Unsupported for particle emitters; the runtime method does nothing.
override scaleBy(scale: Scale3d): void;show
Makes the object visible.
override show(): void;hide
Makes the object invisible.
override hide(): void;