Adding Edge Collision and Gravity behaviors to a ball
behaviors can create some complex animation. Let's take a look at how we can make a ball bounce around our Canvas.
- Double-click to open the
- Press the Space bar to start the playback. This project consists of a 3D ball being tossed across the screen using the Throw behavior. Click on the disclosure triangle for the group to reveal its content. You can see the behavior along with the filters used to colorize the object. Let's add a little gravity to the ball so that it falls down.
- Go to the gear icon just under the Canvas and choose Gravity from under Simulations. The Throw behavior is affected by gravity and the ball now falls down.
- Press the ...