Documentation: CollisionTriggerComponent
Jump to navigation
Jump to search
Name | Type | Initial Value | Example Range | Description |
---|---|---|---|---|
Members | ||||
width | float | 32 | [0, 100] | |
height | float | 32 | [0, 100] | |
radius | float | 32 | [0, 100] | |
required_tag | std::string | mortal | ||
remove_component_when_triggered | bool | false | ||
destroy_this_entity_when_triggered | bool | true | ||
timer_for_destruction | int | 0 | [0, 60] | |
self_trigger | bool | false | if true, the shooter can trigger it | |
skip_self_frames | int | 60 | skips checks against self during these frames | |
Privates | ||||
mTimer | int | 0 |
Check Area
This component first collects all entities within the rectangle defined by width
and height
,
then it goes through those entities and checks whether they are within the defined radius.
Only if both checks succeed does it count as a collision.