The entity this shape is attached to. When set, this shape
will copy the root location of the attached entity and the
shape's position will be used as an offset.
Betacolor
color:RGB
Remarks
The color of the shape.
ReadonlyBetadimension
dimension:Dimension
Remarks
The dimension the shape is visible within. If the dimension
is undefined, it will display in all dimensions.
BetaendLocation
endLocation:Vector3
Remarks
The end location of the line segment. The final line will
spawn between location and endLocation.
ReadonlyBetahasDuration
hasDuration:boolean
Remarks
Returns true if the shape has a limited time span before
being removed.
BetaheadLength
headLength:number
Remarks
Adds a new debug shape to the world.
BetaheadRadius
headRadius:number
Remarks
The radius of the arrow's head/tip.
BetaheadSegments
headSegments:number
Remarks
The number of segments for the base circle of the arrow's
head/tip (default: 4).
Bounds: [3, 128]
ReadonlyBetalocation
location:Vector3
Remarks
The location of the shape. For most shapes the location is
the centre of the shape, except DebugLine and DebugArrow
where this represents the start point of the line.
Betarotation
rotation:Vector3
Remarks
The rotation of the shape (Euler angles - [Pitch, Yaw,
Roll]).
Betascale
scale:number
Remarks
The scale of the shape. This does not apply to DebugLine or
DebugArrow.
OptionalBetatimeLeft
timeLeft?:number
Remarks
The time left (in seconds) until this shape is automatically
removed. Returns undefined if the shape does not have a
limited life-span.
OptionalReadonlyBetatotalTimeLeft
totalTimeLeft?:number
Remarks
The total initial time-span (in seconds) until this shape is
automatically removed. Returns undefined if the shape does
not have a limited life-span.
BetavisibleTo
visibleTo:Player[]
Remarks
The list of players that this shape will be visible to. If
left empty, the shape will be visible to all players.
Methods
remove
remove():void
Beta
Returns void
Remarks
Removes this shape from the world. The shape can be re-added
via the DebugDrawer's addShape method.
Set the location and dimension of the shape. If the
dimension is undefined, it will display in all dimensions.
For most shapes the location is the centre of the shape,
except DebugLine and DebugArrow where this represents the
start point of the line.
The length of the arrow's head/tip.