mirror of
https://github.com/pissang/claygl.git
synced 2026-02-01 17:27:08 +00:00
14 lines
297 B
TypeScript
14 lines
297 B
TypeScript
import Vector3 from '../math/Vector3';
|
|
|
|
export default interface ParticleField {
|
|
/**
|
|
* Apply a field to the particle and update the particle velocity
|
|
*/
|
|
applyTo(
|
|
velocity: Vector3 | undefined,
|
|
position: Vector3,
|
|
weight: number | undefined,
|
|
deltaTime: number
|
|
): void;
|
|
}
|