Paired with a spatial_sense_emitter, implement this interface on a component to mark it as a sense detector. Detects from a point at the entity's transform.
A mesh_component can be added to the entity to define a detection volume.
A detector detects a sense when either an emitter is inside a detector's volume or a detector is inside an emitter's volume.
On detection, OnSpatialChange is invoked.
Verse using statement |
using { /Verse.org/Perception } |
Members
This interface has both data members and functions.
Data
| Data Member Name | Type | Description |
|---|---|---|
EmitterType |
castable_subtype(spatial_sense_emitter) |
The emitter type this detector pairs with. |
Functions
| Function Name | Description |
|---|---|
RegisterDetector |
Enrolls this detector in the perception system so it can perceive emitters. Fails if the implementer is not a |
OnSpatialChange |
Fires on overlap changes between this detector and a paired emitter. |