Bowls
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
Physics.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <math.h>
4 #include "cgg/cgg.h"
5 #include "Bowl.h"
6 #include "Box.h"
7 
14 namespace Physics
15 {
26  float distanceBetweenTwoSpheres(cgg::Vec3 sphere1Pos, cgg::Vec3 sphere2Pos);
27 
38  bool collisionCheck(Ball* sphere1, Ball* sphere2, float dt);
39 
50  bool collisionCheck(Ball* sphere, Box* wall, float dt);
51 
60  void newCollisionVelocities(Ball* sphere1, Ball* sphere2);
61 
70  void newCollisionVelocities(Ball* sphere, Box* wall);
71 
79  void applyFriction(Ball* sphere);
80 
90  float kinectInputVelocity(float distance, float time);
91 };
float kinectInputVelocity(float distance, float time)
void applyFriction(Ball *sphere)
bool collisionCheck(Ball *sphere1, Ball *sphere2, float dt)
Class that represents a Ball.
Definition: Ball.h:14
Physics functions.
Definition: Physics.h:14
void newCollisionVelocities(Ball *sphere1, Ball *sphere2)
Class that represents a Box.
Definition: Box.h:13
float distanceBetweenTwoSpheres(cgg::Vec3 sphere1Pos, cgg::Vec3 sphere2Pos)