Collision Event
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.
To learn more about the Toggle option, go to
Actions
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 Sounds Library or your own custom sounds.
A Starter, Professional or Team subscription is needed to access Splineβs Sounds Library.
Hereβs how to add Collision Events to your scene.