Collision Propagators is an easy-to-use and extendable solution for collision handling and event forwarding. Commented source code and examples included.
Features:
- Collision forwarding via events.
- Both C# and UnityEvents supported.
- Filter collisions by layers and by tags.
- One-shot and auto-destruction.
- Trigger content management.
Benefits:
- Makes decoupling custom logic from the collisions easy.
- Increases productivity and reduces repetitive scripts. 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
UpdateNow supports also 2D collisions!