void positionalCorrection(physics::RigidBody *object1, physics::RigidBody *object2, double penetration, rune::Vec2 normal)
Correct the position of the object each frame so that it doesn't look like two objects are overlappin...
Definition: physicsEngine.cpp:376
Game object component that allows a game object to have collisions with other objects.
Definition: rigidBody.h:95
double pythagoreanSolve(double a, double b)
Solve for the hypotenuse given the two sides of a triangle.
Definition: physicsEngine.cpp:395
void resolveCollisions(std::vector< physics::collision > currentCollision)
Resolve the definite collisions in a physically realistic way.
Definition: physicsEngine.cpp:303
void updatePhysics(std::vector< physics::RigidBody * > objects, double dT)
Function call made by the game scene to have objects get updated.
Definition: physicsEngine.cpp:7