🎯 Collision Detection Between components
Hi Rive team and community,
I’d love to suggest a feature that could really expand what’s possible for interactive and game-like experiences built in Rive.
🎯 The Use Case
I’m working on a character set up inside a Component.
This character has an attack animation, and the attack area (hitbox) is defined by a shape that also lives inside the same component.
What I would like to achieve is:
When the attack animation plays, an external element (for example, an enemy outside the component) should react only if it is touching that attack area shape at that moment.
In other words, I want some form of collision or overlap detection between:
A shape inside a component
andAn object or shape outside of that component
💥 Practical Example
Think of a simple game scenario:
A character swings a sword
The sword’s hit area is animated and lives inside the character component
An enemy stands outside that component
The enemy should take damage only if it intersects the attack area during the swing
Right now, there doesn’t seem to be a way for elements inside a component to detect or communicate spatial interaction with elements outside of it.
🚧 Current Limitation
At the moment, interactions are mostly driven by:
State Machine logic
Inputs / Data Binding
Events
But none of these handle spatial relationships like overlap, collision, or contact between shapes across component boundaries.
✅ What Would Help
A system that allows:
Detecting collisions or overlaps between shapes
Especially across component boundaries
And triggering state changes, events, or data updates based on that contact
This would unlock much richer possibilities for:
Game mechanics
Interactive characters
Physics-inspired UI interactions
Advanced prototyping directly inside Rive
🙌 Why This Matters
Rive is already incredibly powerful for interactive animation. Adding some form of built-in collision/overlap detection would make it possible to prototype (and even ship) much more advanced interactive logic without relying entirely on external game engines.
Thanks for considering this, and I’d love to hear if others have similar needs or clever workarounds!