Inertia Demo

Attraction Repulsion

Drag the crosshair cursor close to the black ball.   Notice that the cursor exerts a force, that is, a push or a pull, on the ball.  Try and get the ball to hit the green rectangle and not the red rectangle.

The bar on the right displays the kinetic energy of the ball.

Script Functions

This example demonstrates the following Animator methods.

Note: Both objects must be sticky in order to stop the animation on a collision.