five-on-it / packages/sim/src/world / SafeZone
Interface: SafeZone
Defined in: packages/sim/src/world.ts:82
An area of the level (m, the game's frame) where players are safe from each other: a game's safe zone, a circle or a polygon inside its circle.
Properties
polygon?
optionalpolygon?: readonlyobject[]
Defined in: packages/sim/src/world.ts:87
A polygon zone's outline, inside the circle.
radius
radius:
number
Defined in: packages/sim/src/world.ts:85
x
x:
number
Defined in: packages/sim/src/world.ts:83
z
z:
number
Defined in: packages/sim/src/world.ts:84