API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

C

classRotateOverLifetime

@codexo/exojs-particles / particles / stable

Adds a constant angular acceleration to every live particle each frame (analogous to the legacy `TorqueAffector`). The system's integrate pass advances `rotation` from `rotationSpeed`; this module increments `rotationSpeed` itself. Units: degrees per second². Negative values decelerate spin. GPU-eligible.

1
props
5
methods
0
events
Import
import { RotateOverLifetime } from '@codexo/exojs-particles'

Adds a constant angular acceleration to every live particle each frame (analogous to the legacy `TorqueAffector`). The system's integrate pass advances `rotation` from `rotationSpeed`; this module increments `rotationSpeed` itself.

Units: degrees per second². Negative values decelerate spin.

GPU-eligible.

Constructors 1
new(angularAcceleration: number): RotateOverLifetime
Methods 5
apply(system: ParticleSystem, dt: number): void
destroy(): void
uploadTextures(device: GPUDevice, textures: ReadonlyMap<string, GPUTexture>): void
wgsl(): WgslContribution
writeUniforms(view: DataView, offset: number): void
Properties 1
angularAcceleration: number
Source