object_physics.h
上传用户:liujun12jf
上传日期:2022-07-12
资源大小:638k
文件大小:1k
源码类别:

OpenGL

开发平台:

Visual C++

  1. #ifndef _OBJECT_PHYSICS_H_
  2. #define _OBJECT_PHYSICS_H_
  3. #include "main.h"
  4. class CPhysicObject : public CSceneNode
  5. {
  6. public:
  7. NewtonBody *pBody; // newton body pointer
  8. // temporary
  9. bool isBox;
  10. float weight;
  11. int *piTexID;
  12. CVector size;
  13. //
  14. CPhysicObject();
  15. ~CPhysicObject();
  16. void ReleaseFromNewton();
  17. void SetNewtonAutoFreeze(bool bAutoFreeze);
  18. void SetNewtonPosition(CVector v);
  19. virtual void Update(float fTime);
  20. virtual void Render();
  21. SN_RTTI GetType()
  22. { return SN_PHYSIC_BASE; }
  23. };
  24. #endif