-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathPXPhysic.h
38 lines (32 loc) · 1002 Bytes
/
PXPhysic.h
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
#ifndef PXPhysicINCLUDE
#define PXPhysicINCLUDE
#include <Media/PXType.h>
#include <Math/PXVector.h>
#include <Math/PXMatrix.h>
#define PXGravityForceSun 274
#define PXGravityForceMercury 3.7
#define PXGravityForceVenus 8.87
#define PXGravityForceEarth 9.807
#define PXGravityForceEarthMoon 1.62
#define PXGravityForceMars 3.721
#define PXGravityForceJupiter 24.79
#define PXGravityForceSaturn 10.44
#define PXGravityForceNeptune 11.15
#define PXGravityForceUranus 8.87
#define PXGravityForcePluto 0.62
typedef struct PXPhysicProperties_
{
PXMatrix4x4F MatrixModel;
PXVector3F Velocity;
PXVector3F Force;
float Mass;
float Friction;
// Frriction static / dynamic
// elastistity / boncyness
PXBool EnablePhysics;
PXBool EnableGravity;
PXBool IsSolid;
}
PXPhysicProperties;
PXPublic void PXAPI PXPhysicGravityApply(PXPhysicProperties* const physicProperties, const PXVector3F* const gravityDircetion, const float gravityForce, const float deltaTime);
#endif