Component:ColliderEventRelay

From Resonite Wiki
Component image 
Collider Event Relay component as seen in the Scene Inspector

The ColliderEventRelay takes a collider to monitor and sends ContactEvent messages when certain collisions happen.

Fields

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled. Some components stop their functionality when this field is disabled, but some don't.
Collider ICollider The collider to monitor events for.
ContactStart delegate of identity ContactEvent The Sync delegate of a certain definition to call when Collider starts contact with another collider.
ContactStay delegate of identity ContactEvent The Sync delegate of a certain definition to call when Collider stays in contact with another collider. Is called every frame.
ContactEnd delegate of identity ContactEvent The Sync delegate of a certain definition to call when Collider ends contact with another collider.

Usage

Can be used to trigger any other Component with a contact event method when a contact event happens.

Examples

This article or section is a Stub. You can help the Resonite Wiki by expanding it.

See Also