Skip to content

EntityShapeData

15.6 Interface

Inheritance 2 descendants

Class Documentation

Edit documentation

A 2D outline that a map entity uses as an area. The client asks the shape for its outline as a list of points. The points lie in the XZ plane, in world units, relative to the entity.

Each reader of a shape places the points in the world in its own way:

Reader Use of the points
RegionGeComponentDef shapeData Transformed by the entity transform. They give the bounds of the region entity and the area that a nav region writes onto the nav grid (see NavRegionDef).
SfxGeComponentDef shapeData Offset by the entity position, without rotation. They give the area of the ambient sound. If no shape is set, the sound plays from the entity position.
SuperwardGeComponentDef The client takes the shape of the region entity in visionRegion and triangulates it into a ground mesh.
PlanarReflectorGeComponentDef Polygon Transformed by the entity transform, for the visibility test of the reflection plane.

Referenced by 3 classes · 3 properties