Declaration
event OnTriggerEnter(target entity<Entity>)
go
Parameters
| Name | Type | Description |
|---|---|---|
| Target | Entity | The opposing entity when the trigger event occurs |
Triggered when an entity enters a trigger. When a trigger event is triggered, both parties receive the event. One party must be a rigid body and the other party must be a trigger. In particular, when the trigger is a custom trigger object, only the trigger will receive the event.
event OnTriggerEnter(target entity<Entity>)
go
| Name | Type | Description |
|---|---|---|
| Target | Entity | The opposing entity when the trigger event occurs |