home *** CD-ROM | disk | FTP | other *** search
- #ifndef __PhysicsInfo_h__
- #define __PhysicsInfo_h__
-
- #include "vectormath.h"
- #include "GameObject.h"
-
- typedef struct forceTimeCombo_s{
- vec3_t F;
- unsigned long activeUntilMillis;
- }forceTimeCombo_t;
-
- class PhysicsInfo{
- public:
- list<forceTimeCombo_t> pushForces;
- float m, g, r;
- vec3_t F_i, v;
-
- vec3_t F, F_g, F_p, F_r, a;
-
- // PhysicsInfo(GameObject* go);
-
- void addPushForce(vec3_t F, unsigned long durationMillis);
- void calcAcceleration();
- };
-
- #endif /* __PhysicsInfo_h__ */
-