Gina Guerrero
CpSc8170 - Fall 2013
Project #1 - Bouncing Ball in Box
C++/OpenGL
A simulation of a ball bouncing in a box
Model & Vector/Utility by Dr. House.
Model Class modified to create an isosphere & plane
Usage: ballbox [parameter_file]
m or M IMPORTANT: transforming camera view to simulation control (default: camera)
p or P switches from ortho to perspective views (default: perspective)
q or ESC quit
SIMULATION:
RMB opens menu
LMB triggers selected option
CAMERA: left button | middle button | right button
left drag (-) rotation: model's y | (+)-r: camera's y | (+) translation: camera's z
right drag (+) rotation: model's y | (-)-r: camera's y | (-) translation: camera's z
down drag (+) rotation: model's x | (+)-r: camera's x | (+) translation: camera's z
up drag (-) rotation: model's x | (-)-r: camera's x | (-) translation: camera's z
Continuous/Step changes simulation between continuous or step
Reset resets the ball
Clean cleans the simulation history & resets ball
Quit quit
ballbox.cpp (main program)
p (sample parameter file)
Entity.cpp, Entity.h
Model.cpp, Model.h
State.cpp, State.h
README.md
Makefile
Matrix.cpp, Matrix.h
Utility.cpp, Utility.h
Vector.cpp, Vector.h
N/A
16