claygl/src/particle/Field.ts
2022-05-07 21:45:53 +08:00

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;
}