3 #include "../Maths/Vec2.h" 4 #include "../Maths/Vec3.h" Contains Collision detection functions for use within the code.
Definition: Collision.cpp:5
Contains the Vec2 structure with functions and overloaded operators.
Definition: Vec2.h:8
bool rectRectIntersect(Vec2 posBoxA, Vec2 dimBoxA, Vec2 posBoxB, Vec2 dimBoxB)
Checks to see if two rectangles intersect.
Definition: Collision.cpp:8
bool cubeCubeIntersect(Vec3 posBoxA, Vec3 dimBoxA, Vec3 posBoxB, Vec3 dimBoxB)
Checks to see if two cubes intersect (position is the center of the cube)
Definition: Collision.cpp:20
bool sphereSphereIntersect(Vec3 sphere1Pos, Vec3 sphere2Pos, float sphere1Rad, float sphere2Rad)
Takes in two sphere positions and radius's and uses this to detect if the sphere's collide...
Definition: Collision.cpp:189
Contains the Vec3 structure with functions and overloaded operators.
Definition: Vec3.h:8
bool circleCircleIntersect(Vec2 circle1Pos, Vec2 circle2Pos, float circle1Rad, float circle2Rad)
Takes in two circle positions, radius's to detect if the circles collide.
Definition: Collision.cpp:175
bool circleRectIntersect(Vec2 circlePos, Vec2 boxPos, float circleRad, Vec2 boxDim)
Takes in a circle position and radius and a box position and dimensions to detect for collision...
Definition: Collision.cpp:235
bool sphereCubeIntersect(Vec3 posBox, Vec3 dimBox, Vec3 posSphere, float radSphere)
Checks to see if a cube and sphere intersects (position is the center of the cube) ...
Definition: Collision.cpp:98