Collision Propagators is an easy-to-use and extendable solution for handling collision events. It forwards Unity callbacks via events to be used by other components. Both Unity Events and native C# events are supported. Commented source code and examples included.
Features:
- Filtering both by layers and by tags.
- One-shot and auto destruction options available.
- Ready-to-use solution for managing trigger volumes and the colliders inside it.
Benefits:
- Makes decoupling custom logic from the collisions easy.
- Increases productivity and reduces repetitive scripts by allowing the programmers to do whatever they want with the collisions without having to create new scripts just for receiving the collision events. In simple cases, Collision Propagator can replace an entire script with a one-liner.
- Using Unity Events allows subscribing to the collision events in the Inspector, which enables a non-coding workflow.
- Using native C# events provides better control for programmers (and in many cases also better performance).
Note:
This asset includes Event Propagators