Timelines: Select multiple Entities with Collision Behaviors
The `OnCollision` Behavior can fire a Timeline when colliding with more than one Entity.
When adding an OnCollision Behavior to an Entity, we need to select a value for the Colliders property. It may not be obvious, but we can select multiple entities with Collision Components. Click the field to enter “Select Collider Objects” mode. Then select any entities in your scene graph that can collide with the one you are editing.

In this example, we add a Behaviors component to the Rocket. This will check for collisions with the Plane and Car. When one of these collides with the Rocket, we’ll play the SpinRocket Timeline.
When a single entity is selected the Colliders field will show the name of that entity. When more than one is selected the field will display “Multiple…”. Click on this field to see the current selected entities. Add and remove entities as needed.
Support our work so we can continue to bring you new examples and articles.

Follow Step Into Vision