With Collision Events and Physics, it is possible to trigger events when objects hit other objects. In combination with Game Controls, you can create more interactive experiences.
How to add a Collision Event
- For Collision Events to work, it is needed to have Physics Enabled on the environment as well as on the objects. Go to Environment settings and enable Physics, then select the object(s) to enable physics on them as well.
- Select the object(s) and create a new event under the Events Panel.
- Open the Collision event to start adding and tweaking actions and parameters. The following parameters can be adjusted:
- With - Select with what the collision event will be triggered: Characters (objects with Game Control events), and Anything (any object of the scene).
- Toggle - Allows reversing the animation of an event so each time a collision happens, the event will trigger an action and reverse it.
Similar to other events, Collision events can trigger transitions that target objects and trigger a state change with transitions, delay, cycle, and loop properties. Sound actions can play, pause, and stop sounds from Spline’s Original Sounds Library or your own custom sounds.
A Super or Super Team subscription is needed to access Spline’s Original Sounds Library.
Here’s how to add Collision Events to your scene.