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.
Defaults to true. If set to true, we default to being
visible to all players if visibleTo is empty - hiddenFrom
still applies afterwards. If set to false, we default to
hiding the shape from all players if visibleTo is empty.
The list of players that this shape will be hidden from. If
a player is listed in both this and visibleTo, this takes
priority (it will be hidden from the player).
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.
可选maximumRenderDistance
maximumRenderDistance?:number
备注
If defined, this distance will be used to determine how far
away this shape will be rendered for each client. By default
the distance will match the client's render distance
setting.
The list of players that this shape will be visible to. If
left empty and defaultVisibleToAll is true, the shape will
be visible to all players, otherwise it will be hidden from
all players.
width
width:number
备注
The width of the pyramid's base.
方法
remove
remove():void
返回 void
备注
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.
A debug shape class that represents a pyramid.