Skip to content

EntityPolygonData

15.6

Inheritance 1 ancestor · 1 sibling

Class Documentation

Edit documentation

A shape that is a polygon. The outline is the list of Vertices, or a smooth curve through them if Smooth is set.

Properties

Smooth

Bool = false
16.20
Edit documentation

If true and the polygon has at least 3 vertices, the client replaces the outline with a closed centripetal Catmull-Rom curve through the vertices. It subdivides each curve segment until the segment is flat within 4 world units, at most 4 times, and uses the resulting points as the outline.

If false, or if the polygon has fewer than 3 vertices, the client uses the vertices as they are.

Vertices

List2<Vec3>
Default value
[
  [-200, 0, -200],
  [200, 0, -200],
  [200, 0, 200],
  [-200, 0, 200]
]
Edit documentation

Corners of the polygon, in world units, relative to the entity.

Referenced by 1 class · 1 property