Detect Collision (Collision Event)
With data binding, it's now possible to handle AABB (Axis-Aligned Bounding Box) collisions, but this process can become quite complex when dealing with many elements, also, AABB doesn’t always work well with irregular or complex shapes.
It would be great to have the ability to track the actual area of a path and use that to define collision zones with other elements. This would open up more possibilities for interaction in games and interfaces.
I believe Rive already has this data available internally, since hover interactions work very accurately, which indicates there is already a system in place to check whether a point (like the cursor) is inside a shape. The idea would be to extend this kind of verification to allow for shape-to-shape intersection checks, not just point-to-shape.
The idea:
Create a new kind of event (collision event) in which you could set a main shape and multiple other shapes that would trigger if they’re colliding, you could then trigger any input based on this event.
The icons represent in which moment the event will trigger, if only when collision is detected, when collision is detected AND when there’s no more collision detected or only when there’s no more collision detected.