blob: 6410d747e480c33221e8d3281f88a67a96a547c0 (
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 bool checkForSphereCollision(RenderShapeData ¤tShape, RenderShapeData &shape);
static bool checkForConeCollision(RenderShapeData ¤tShape, RenderShapeData &shape);
static bool checkForCylinderCollision(RenderShapeData ¤tShape, RenderShapeData &shape);
static bool checkForCubeCollision(RenderShapeData ¤tShape, RenderShapeData &shape);
static void updateShapePositions(std::vector<RenderShapeData> &shapes);
static void handleCollisions(std::vector<RenderShapeData> &shapes);
};
#endif //PROJECTS_RAY_PHYSICS_H
|