Skip to main content

Body Setting Collision Event

Pro Feature

Pro features are only available with a Professional licence. To upgrade, visit cavalry.scenegroup.co.

Intro

Update the settings of a dynamic body when it collides with another as part of a Forge Dynamics simulation.

UI

Kill on Collision - If a Body is involved in a collision it is removed from the simulation.

Set Sensor - When checked, set the Shape to a sensor.

Sensor - When checked, a shape can trigger collision events, but will not trigger collisions.

Set Friction - When checked, set the Shape's Friction when it collides.

Friction - Set the Friction value to set when a Shape collides.

Set Bounce - When checked, set the Shape's Bounce when it collides.

Bounce - Set the Bounce value to set when a Shape collides.

Set Density - When checked, set the Shape's Density when it collides.

Density - Set the Density value to set when a Shape collides.

Set Gravity Scale - When checked, set the Shape's Gravity Scale when it collides.

Gravity Scale - Set the Gravity Scale value to set when a Shape collides.

Use Collision Index - When checked, each collision will add 1 to its index. This can be used, for example, in combination with a Value Array connected to the Friction – each time a Shape collides its Friction value will change to the next value in the Array.

Specific Collisions - When checked, use the Collision Numbers attribute to define which collisions are used.

Collision Numbers - Enter a value to specify which collision(s) are used to trigger the event. 0 is the first collision and use comma separated values to include multiple collisions. For Example, entering 0,2 would include the first and third collisions.

Fade Changes - When checked, the Shape will return to its original settings.

Fade Time - Define the time (secs) it takes for a Shape to return to its original settings.