homework #2-B for CAP4730 (spring, 2009)


Haptic device Modeling part B

  1. [10+10] camera movement Keyboard "c" selects the camera. When the camera is selected, it moves according to the arrow keys. When '←' or '→' is pressed, the camera rotates along a blue circle parallel to the equator. When '↑' or '↓' is pressed, the camera rotates along a red circle orthogonal to the equator. Fig.6 The camera always points to the origin. Describe two possible choices of the "up" direction as you move through the north pole.

    Fig.6

  2. [20] mouse interaction Select any fingers on the screen with a mouse click. Mouse motion replaces the arrow functionality. When no parts of the haptic device is selected, the camera should be selected and move according to the mouse movement as the keyboard.

  3. [20] animation Locate the tip of Ctip .When "space bar" is pressed, pick a random point in the plane and (randomly) a Platonic solid to fly along a quadratic arc(simulating gravity) to the tip of Ctip. Animate the motion.

  4. [5] for more interesting objects, trajectories and other fun effects.


files to submit

You're supposed to submit the following files.


demo program

Here are the executables for each platform you can try yourselves.