TerrainAwareComponent - acrimi/Raven GitHub Wiki

TerrainAwareComponent defines an entity's ability to detect the terrains of the surfaces it is on. The terrains will be checked according to the entity's bounding box and be stored in the component for other systems to reference.

Configuration

This component doesn't accept any configuration parameters

Properties

The following properties are readable by property accessors (eg render state and persistence definitions):

Key Type Description
terrainNames string[] A list of all terrains that the entity is currently overlapping