Touch perception event. DetectionState is Active on the first mesh_part contact with an emitter, Inactive when the last separates. TouchData is a snapshot fixed at the transition; for values tracking the ongoing contact call Detector.GetCurrentTouchData during Active. Cast an incoming scene_event via touch_detection_event[E] for typed access.
Verse using statement |
using { /Verse.org/Perception } |
Inheritance Hierarchy
This class is derived from sense_detection_event.
| Name | Description |
|---|---|
sense_detection_event |
Common fields on every sense detection event. |
Members
This class has data members, but no functions.
Data
| Data Member Name | Type | Description |
|---|---|---|
DetectedEntity |
entity |
The entity this perception attributes to. |
DetectionState |
sense_detection_state |
Active or Inactive; touch is continuous and never emits Instant. |
DetectionState |
sense_detection_state |
Whether this event begins, ends, or is a single instant detection. |
Detector |
touch_detector_component |
The detector that felt the touch. |
Emitter |
touch_emitter_component |
The emitter that was touched. |
TouchData |
touch_data |
Snapshot of the contact for this transition. |