API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classRotateOverLifetime
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.
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.
new(angularAcceleration: number): RotateOverLifetime apply(system: ParticleSystem, dt: number): void destroy(): void uploadTextures(device: GPUDevice, textures: ReadonlyMap<string, GPUTexture>): void wgsl(): WgslContribution writeUniforms(view: DataView, offset: number): void angularAcceleration: number