Skip to content

EffectArea beta ​

Interface of @v12-engine/engine

ts
export interface EffectArea

What 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 ​

ts
angle: number;

Of a cone and an arc: how wide it opens, in radians

heading ​

ts
heading: number;

The way it faces, as a unit's facing is (radians, 0 along +z)

length ​

ts
length: number;

Of a cone, a line, a rectangle and a cross: how long it is, end to end

radius ​

ts
radius: number;

Of a circle, a ring and an arc: how far out it reaches

shape ​

ts
shape: EffectShape;

Which shape it is: circle, cone, line, rect, ring, arc or cross (EffectCommon.shape)

width ​

ts
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 ​

ts
x: number;

Where it is laid: its middle (circle, ring, rect, cross), or where it goes off from (cone, line, arc)

z ​

ts
z: number;

Where it is laid along z, as x is along x