home *** CD-ROM | disk | FTP | other *** search
/ Enter 2005 March / ENTER.ISO / files / fwp-0.0.6-win32-installer.exe / PhysicsInfo.h < prev    next >
Encoding:
C/C++ Source or Header  |  2004-12-23  |  506 b   |  27 lines

  1. #ifndef __PhysicsInfo_h__
  2. #define __PhysicsInfo_h__
  3.  
  4. #include "vectormath.h"
  5. #include "GameObject.h"
  6.  
  7. typedef struct forceTimeCombo_s{
  8.     vec3_t F;
  9.     unsigned long activeUntilMillis;
  10. }forceTimeCombo_t;
  11.  
  12. class PhysicsInfo{
  13. public:
  14.     list<forceTimeCombo_t> pushForces;
  15.     float m, g, r;
  16.     vec3_t F_i, v;
  17.  
  18.     vec3_t F, F_g, F_p, F_r, a;
  19.  
  20. //    PhysicsInfo(GameObject* go);
  21.  
  22.     void addPushForce(vec3_t F, unsigned long durationMillis);
  23.     void calcAcceleration();
  24. };
  25.  
  26. #endif    /* __PhysicsInfo_h__ */
  27.