UNPKG

@babylonjs/core

Version:

Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.

26 lines (25 loc) 779 B
import { Vector3 } from "../Maths/math.vector.js"; import type { Particle } from "./particle.js"; import type { ThinParticleSystem } from "./thinParticleSystem.js"; /** * Class representing an attractor in a particle system. * #DEZ79M#40 */ export declare class Attractor { /** * Gets or sets the strength of the attractor. * A positive value attracts particles, while a negative value repels them. */ strength: number; /** * Gets or sets the position of the attractor in 3D space. */ position: Vector3; /** @internal */ _processParticle(particle: Particle, system: ThinParticleSystem): void; /** * Serializes the attractor to a JSON object. * @returns The serialized JSON object. */ serialize(): any; }