aboutsummaryrefslogtreecommitdiff
path: root/src/physics/physics.h
blob: 6aad9809f4dcfc9cf9e886a5f8930220629dd04d (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
//
// 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