Collision Handler
Last updated
Last updated
Collision handler is a component that detects collisions on a Rigidbody, gathers information about the collision and sends it to the listeners.
To use the CollisionHandler, assign it to the root game object, where Rigidbody component is attached.
Drag and drop the Rigidbody into the object field and, optionally, set the values to other fields.
In code, subscribe to events as you see fit.
Don't forget to unsubscribe from the events (usually in the OnDestroy method).
Then, in your own scripts, or the scripts that come with this package, like , and , get a reference to the CollisionHandler component.
Events pass information about collision. See for details.