Forces

Objective: Choose one or more of the following…or create your own.

  • Extend one of the examples into 3 dimensions.
  • Examine the first example which implements a “drag” force. Can you make a liquid class (moving the code out of the main program)? Can you create a system of multiple objects moving through multiple “liquids”?
  • Can the concept of “force” be used as a metaphor for some other situation? What other forces are there in the digital worlds you create?
  • Research and implement another type of force not covered above.
  • Can you use the notion of gravity to create a “repulsive” force, rather than “attractive”? Taking the last example above, can you develop some tricks to keep the system stable enough stay within the realm of the window?
  • screen shot

    Bubbles move around the screen, with gravity added to them. They bounce from the sides in order to stay within the screen. If you click the mouse, wind gets added and pushes them around.

    Click to view

    0 Responses to “Forces”


    1. No Comments

    Leave a Reply