InteractionComponent - acrimi/Raven GitHub Wiki
InteractionComponent
describes an entity's ability to interact with entity's that have an InteractableComponent. A spatial scan will check for interactable entities within a given range and store their id in the component's targetId
property, where it can be used by other systems such as the InputSystem
.
Configuration
When used inside the components
block, the initial state of the component can be configured with the following parameters:
Key | Type | Description |
---|---|---|
range | float | The distance, in gl units, according to the entity's orientation that will be checked for interactable entities |
Example:
"InteractionComponent": {
"range": 2
}
Properties
This component has no exposed properties