When you bounce off [options]

Last modified by admin on 2023/10/27 09:14

Runs the script when the object collides physically with another object. Other objects motion types will have to be set to physical.

when_you_bounce_off_brick2.png

Correlates with this brick:

Set motion type to Brick
Learn more >>

Example

The panda collides with the ground and then jumps. To collide you need at least two objects:

When physical collision with Example 1

For the panda set the motion type to “bouncing with gravity” and use this script:

When physical collision with Example 2

When_you_bounce_off_tutorial_b.pngFor the ground set the motion type to “others bounce off it”:

When physical collision with Example 3

Result

Download

When physical collision with Result