EffectArea beta
Interface of @v12-engine/engine
export interface EffectAreaWhat an effect covers where it lands (effectArea): its shape, where it is laid and the way it faces, with its sizes worked out. A circle, a ring, a rectangle and a cross lie around the point it landed on; a cone, a line and an arc go off from where the effects do (the caster, or the context's origin)
Members
angle
angle: number;Of a cone and an arc: how wide it opens, in radians
heading
heading: number;The way it faces, as a unit's facing is (radians, 0 along +z)
length
length: number;Of a cone, a line, a rectangle and a cross: how long it is, end to end
radius
radius: number;Of a circle, a ring and an arc: how far out it reaches
shape
shape: EffectShape;Which shape it is: circle, cone, line, rect, ring, arc or cross (EffectCommon.shape)
width
width: number;Of a line, a rectangle and a cross: how far out it covers on either side; of a ring and an arc, how thick
x
x: number;Where it is laid: its middle (circle, ring, rect, cross), or where it goes off from (cone, line, arc)
z
z: number;Where it is laid along z, as x is along x