00001 00004 class Body 00005 : public IBody 00006 { 00007 public: 00010 Body(const float3& position, const float3& rotation); 00011 00013 virtual ~Body(); 00014 00016 void setActor(NxActor* actor); 00017 00018 float3 getPosition(); 00019 void stopMotion(); 00020 void setMass(int mass); 00021 void setGlobalPosition(float3 position); 00022 bool isMoving(); 00023 void slowDown(); 00024 00026 NxActor& getActor(void); 00027 00028 void applyForce(float3 vec); 00029 00030 private: 00031 NxActor* actor; 00032 bool flag; 00033 }; 00034 00035 typedef Body* pBody;