aboutsummaryrefslogtreecommitdiff
path: root/src/physics/physics.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/physics/physics.h')
-rw-r--r--src/physics/physics.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/physics/physics.h b/src/physics/physics.h
index 6410d74..b33778f 100644
--- a/src/physics/physics.h
+++ b/src/physics/physics.h
@@ -10,17 +10,18 @@
class Physics {
public:
- static bool checkForSphereCollision(RenderShapeData &currentShape, RenderShapeData &shape);
- static bool checkForConeCollision(RenderShapeData &currentShape, RenderShapeData &shape);
+ static void updateShapePositions(std::vector<RenderShapeData> &shapes);
- static bool checkForCylinderCollision(RenderShapeData &currentShape, RenderShapeData &shape);
+ static void handleCollisions(std::vector<RenderShapeData> &shapes);
- static bool checkForCubeCollision(RenderShapeData &currentShape, RenderShapeData &shape);
+ static bool checkForSphereCollision(RenderShapeData *currentShape, RenderShapeData *otherShape);
- static void updateShapePositions(std::vector<RenderShapeData> &shapes);
+ static bool checkForConeCollision(RenderShapeData *currentShape, RenderShapeData *otherShape);
- static void handleCollisions(std::vector<RenderShapeData> &shapes);
+ static bool checkForCylinderCollision(RenderShapeData *currentShape, RenderShapeData *otherShape);
+
+ static bool checkForCubeCollision(RenderShapeData *currentShape, RenderShapeData *otherShape);
};
#endif //PROJECTS_RAY_PHYSICS_H