Sticky and Bouncy demos

Sticky Script

Bouncy Script

 

Sticky and Bouncy are proof of concept ideas and are not well documented.  (Sorry!)  They are not as good as I would like, but they are useful.

Note 1:  Sticky is used to stop an animation when a dynamic object comes in contact with a static object.  Both objects must be sticky.  Please note, objects that follow a trajectory are static.  Objects that obey Newton's laws are dynamic.  All objects are static when they are first created.  Objects become dynamic by invoking the "setForce" method.

Note 2:  The bouncy property has only been implemented for object bouncing from rectangles.