Skip to content
Daniel Shiffman edited this page Feb 24, 2014 · 17 revisions

Incorporate oscillatory motion into a previous assignment (or create a new one). Some suggestions:

  • Design a creature with oscillating parts (legs, wings, antennae, etc.) Consider tying the speed of oscillation to the speed of the creature's linear motion. Can you make it appear that the creature's internal mechanics (oscillation) drive its locomotion? Example solution
  • Create a simulation where objects are shot out of a cannon. Each object should experience a sudden force when shot (just once) as well as gravity (always present). Add rotation to the object to model its spin as its shot from the cannon. How realistic can you make it look?
  • Create a simulation of a vehicle that you can drive around the screen using the arrow keys: left arrow accelerates the car to the left, right to the right. The car should point in the direction it is currently moving.
  • Simulate the spaceship in the game Asteroids. In case you aren't familiar with Asteroids, here is a brief description. A spaceship (represented as a triangle) floats in two dimensional space. The left arrow keys turns the spaceship counter-clockwise, the right clock-wise. The space bar applies a “thrust“ force in the direction the spaceship is pointing. Example Solution
  • String together a series of pendulums so that the endpoint of one is the origin point of another.
  • Use trigonometry to model a box sliding down an incline with friction. Note that the magnitude of the friction force is equal to the normal force.
  • Rework the wave examples to have a Wave class and visualize the wave using something other than circles. Example Answer (minus the change in visualization)
  • Using the Spring example as a basis, create a system of multiple bobs and spring connections. How would you have a Bob connected to a Bob with no fixed anchor? (Sample Answer 1, Sample Answer 2)
  • Research and implement a simulation of Torque.

As always, please create a web page to document your homework. Make sure it include some visual documentation of your work as well as the source code. To the extent possible, please post your link before 9am on Monday morning, Feb 1oth. I will go through them and select ~5 assignments to look at in class. Finally, please add questions related to your assignment next to your name as well as any other general/longer ones below? I'll be using your questions to craft the material I present in class.

  • Name - I didn't understand _______. Could you please explain _______? What does _______ mean? How would I _______?
  • Allison
  • Daniel
  • Danqing
  • David - Processing: I failed to attach the tentacle object to another object to make it move around the screen. JS: For some reason the tentacles won't initialize separately.
  • Dexter
  • Dimelsa
  • Erin
  • [Hellyn] (http://www.hellyn.com/?page_id=295)
  • Haylee
  • Ilwon
  • Isi
  • Jaewoong
  • Karen
  • John
  • Azure
  • Ziv
  • Pedro
  • Moon

Other Questions About Anything

  • I didn't understand _______. Could you please explain _______? What does _______ mean? How would I _______?