aboutsummaryrefslogtreecommitdiff
path: root/src/physics/physics.h
blob: b33778f3943bddb21565da88b5a5fd9dddd64826 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//
// Created by Michael Foiani on 12/13/23.
//

#ifndef PROJECTS_RAY_PHYSICS_H
#define PROJECTS_RAY_PHYSICS_H


#include "utils/sceneparser.h"

class Physics {
public:

    static void updateShapePositions(std::vector<RenderShapeData> &shapes);

    static void handleCollisions(std::vector<RenderShapeData> &shapes);

    static bool checkForSphereCollision(RenderShapeData *currentShape, RenderShapeData *otherShape);

    static bool checkForConeCollision(RenderShapeData *currentShape, RenderShapeData *otherShape);

    static bool checkForCylinderCollision(RenderShapeData *currentShape, RenderShapeData *otherShape);

    static bool checkForCubeCollision(RenderShapeData *currentShape, RenderShapeData *otherShape);
};

#endif //PROJECTS_RAY_PHYSICS_H