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.

40 lines (39 loc) 1.17 kB
import { NodeParticleBlock } from "../../nodeParticleBlock.js"; import type { NodeParticleConnectionPoint } from "../../nodeParticleBlockConnectionPoint.js"; import type { NodeParticleBuildState } from "../../nodeParticleBuildState.js"; /** * Block used to update particle position based on an attractor */ export declare class UpdateAttractorBlock extends NodeParticleBlock { /** * Create a new UpdateAttractorBlock * @param name defines the block name */ constructor(name: string); /** * Gets the particle component */ get particle(): NodeParticleConnectionPoint; /** * Gets the attractor input component */ get attractor(): NodeParticleConnectionPoint; /** * Gets the strength input component */ get strength(): NodeParticleConnectionPoint; /** * Gets the output component */ get output(): NodeParticleConnectionPoint; /** * Gets the current class name * @returns the class name */ getClassName(): string; /** * Builds the block * @param state defines the current build state */ _build(state: NodeParticleBuildState): void; }