-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPhysics.h
More file actions
61 lines (37 loc) · 814 Bytes
/
Physics.h
File metadata and controls
61 lines (37 loc) · 814 Bytes
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
//
// Physics.h
// VirtualMarbleGame
//
// Created by Maximilian Weber
//
#ifndef VirtualMarbleGame_Physics_h
#define VirtualMarbleGame_Physics_h
#include "Labyrinth.h"
#include "Marble.h"
#include "Pose.h"
class Labyrinth;
class Marble;
class Pose;
class Physics {
public:
Physics(Labyrinth*, Marble*, Pose*, Pose*);
~Physics();
void process();
void switch90();
bool rotate90;
void switchCalibrate();
private:
void CheckFinish();
void collisionDetection();
Labyrinth* m_labyrinth;
Marble* m_marble;
Pose* m_pose;
Pose* m_gravity;
float x_new;
float y_new;
float z_new;
void collideX(float);
void collideY(float);
bool m_calibrate;
};
#endif