Skip to main content

Bouncing Ball

Description:

This demonstrates rigid balls' motion under the influence of gravity and colliding with the obstacles. The implementation didn't consider the effect of friction, so the ball wouldn't slow down while sliding on the floor. 

 

Features:

  • 3D implementation.
  • Control:
    • Press and drag the mouse left button to rotate the camera view.
    • Press and drag the mouse middle button to translate the camera view.
    • Scroll the mouse wheel to scale the camera view.
    • Press 'ESCAPE' key to exit.
    • Press 'SPACE' key to play/pause.
  • Simple collision Detection and handling between spheres and planes.
  • Gravity.
  • No parallel computing (OpenMP or CUDA) yet.

Implication Tools:

  • Sublime Text 3 & command line
  • C++ and cmake
  • OpenGL & GLUT
  • Eigen

Demo:

Different behaviors with different Coefficient of Restitution (COR):
  • COR = 0.3

  • COR = 0.6

  • COR = 0.9