My Project: openb3dlib.mod/openb3d/src/physics.h Source File

My Project

physics.h
Go to the documentation of this file.
1 #ifndef PHYSICS_H
2 #define PHYSICS_H
3
4 #include "entity.h"
5
6 class Constraint{
7 static list<Constraint*> constraint_list;
8
9 Entity* P1;
10 Entity* P2;
11
12 float length;
13
14 public:
15 static Constraint* CreateConstraint(Entity* p1, Entity* p2, float l);
16 static void Update();
17 void FreeConstraint();
18 };
19
20 class RigidBody{
21 static list<RigidBody*> rigidBody_list;
22 Entity* body;
23
24 Entity* Points[4];
25
26 public:
27 static RigidBody* CreateRigidBody(Entity* body, Entity* p1, Entity* p2, Entity* p3, Entity* p4);
28 static void Update();
29 void FreeRigidBody();
30 };
31
32
33 #endif
entity.h
RigidBody
Definition: physics.h:20
Entity
Definition: entity.h:27
FreeRigidBody
void FreeRigidBody(RigidBody *body)
Definition: functions.cpp:886
Constraint::CreateConstraint
static Constraint * CreateConstraint(Entity *p1, Entity *p2, float l)
Definition: physics.cpp:31
CreateRigidBody
RigidBody * CreateRigidBody(Entity *body, Entity *p1, Entity *p2, Entity *p3, Entity *p4)
Definition: functions.cpp:536
Constraint::Update
static void Update()
Definition: physics.cpp:7
Constraint
Definition: physics.h:6
Constraint::FreeConstraint
void FreeConstraint()
Definition: physics.cpp:41