Skip to content

FxModel beta ​

Interface of @v12-engine/client

ts
export interface FxModel

A model in an effect: a glb under models/ (as ModelDef.src), with a clip of it played, a size over the part's life, faded in and out, spinning

Members ​

clip ​

ts
clip?: string;

A clip of it played once (loop for over and over)

fade ​

ts
fade?: number;

Seconds it fades out at the end: none when left out

fadeIn ​

ts
fadeIn?: number;

Seconds it fades in, and out at its end: none when left out

loop ​

ts
loop?: boolean;

Whether the clip plays over and over rather than once

scale ​

ts
scale?: Param<FxCurve>;

How big, over the part's life: 1 when left out

sink ​

ts
sink?: boolean;

It goes into the ground as it fades, rather than going see-through: ruins, rubble

spin ​

ts
spin?: number;

Radians a second it spins about the up axis

src ​

ts
src: string;

Path of the model's glb under models/

turn ​

ts
turn?: number;

Turned around the up axis, in radians: random when left out