API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classRepelFromPoint
Pushes every live particle away from a fixed point in the system's local coordinate space. Acceleration magnitude is `strength` (units / s²) along the direction `(particle − point)`. The optional `radius` controls the influence range - particles farther than `radius` are unaffected. Setting `radius = 0` (default) means infinite range with no falloff. Use cases: shockwaves, explosion blast, mouse-cursor repel field. GPU-eligible.
import { RepelFromPoint } from '@codexo/exojs-particles'Pushes every live particle away from a fixed point in the system's local coordinate space. Acceleration magnitude is `strength` (units / s²) along the direction `(particle − point)`. The optional `radius` controls the influence range - particles farther than `radius` are unaffected. Setting `radius = 0` (default) means infinite range with no falloff.
Use cases: shockwaves, explosion blast, mouse-cursor repel field.
GPU-eligible.
new(x: number, y: number, strength: number, radius: number): RepelFromPointdestroy(): voiduploadTextures?(device: GPUDevice, textures: ReadonlyMap<string, GPUTexture>): voidwriteUniforms(view: DataView, offset: number): voidradius: numberstrength: numberx: numbery: number