FxPlay beta
Interface of @v12-engine/client
export interface FxPlayWhere an effect is played, and how (kit.fx.play)
Members
at
at?: Vec2 | {
x: number;
y: number;
z: number;
};A place: on the ground ({ x, z }), or at a height ({ x, y, z })
follow
follow?: boolean;On an entity: follows it as it moves (yes when left out), or stays where it started
marks
marks?: Readonly<Record<string, number>>;Seconds from its start to each mark of a clip (PartTiming.mark), by the mark's name: what the parts that wait for one start by. Where it is left out, the marks still to come in what the entity it is on plays (FxHost.marks)
offset
offset?: readonly [number, number, number];How far from there, in world units: up is y
on
on?: number;An entity it is on: it moves with it (its point), and ends with it unless stay
overFog
overFog?: boolean;Shown over the fog of war, where the player does not see: what is there to be noticed (an area revealed). No when left out
params
params?: FxParams;Its knobs, over the effect's own
point
point?: string;A point of the entity's model (ModelDef.points): its feet when left out
rotation
rotation?: number;Turned around the up axis, in radians: what a part that goes one way goes by
scale
scale?: number;How much bigger: sizes, speeds, reaches. 1 when left out
seed
seed?: number;What its random choices go by (world.fx sends one): the same on every screen for the same seed. What the system picks (a mark's or a model's turn), what a game's own part draws (FxContext.random), the effects it is made of and its particles of the CPU's (where each starts and goes, its life, size and colour, for the same frames) follow it; those on the graphics card draw from their own. The effect's own (FxDef.seed), else random, when left out
stay
stay?: boolean;On an entity: goes on where it was when the entity is gone (a fire that burns on), rather than ending with it
toward
toward?: number | Vec2 | {
x: number;
y: number;
z: number;
};The other end, for an effect drawn between two (a beam, a tether, a link of a chain: linkFx): an entity it follows (at the height of its middle), or a place. What draws it asks where that is every frame (FxContext.toward)