object_physics.h
资源名称:brm2.rar [点击查看]
上传用户:liujun12jf
上传日期:2022-07-12
资源大小:638k
文件大小:1k
源码类别:
OpenGL
开发平台:
Visual C++
- #ifndef _OBJECT_PHYSICS_H_
- #define _OBJECT_PHYSICS_H_
- #include "main.h"
- class CPhysicObject : public CSceneNode
- {
- public:
- NewtonBody *pBody; // newton body pointer
- // temporary
- bool isBox;
- float weight;
- int *piTexID;
- CVector size;
- //
- CPhysicObject();
- ~CPhysicObject();
- void ReleaseFromNewton();
- void SetNewtonAutoFreeze(bool bAutoFreeze);
- void SetNewtonPosition(CVector v);
- virtual void Update(float fTime);
- virtual void Render();
- SN_RTTI GetType()
- { return SN_PHYSIC_BASE; }
- };
- #endif
English
