Skip to content

five-on-it / apps/client/src/renderer/particles / ParticleMotion

Interface: ParticleMotion ​

Defined in: apps/client/src/renderer/particles.ts:35

How a pool's particles move.

Properties ​

drag ​

drag: number

Defined in: apps/client/src/renderer/particles.ts:39

Share of the velocity (relative to the air) lost per second.


gravity ​

gravity: number

Defined in: apps/client/src/renderer/particles.ts:37

Downward pull (m/s²); negative rises.


wind? ​

optional wind?: object

Defined in: apps/client/src/renderer/particles.ts:41

The air's own motion over the ground (m/s): what the drag carries a particle along with.

x ​

x: number

z ​

z: number