migrating some Engine::Object functionality to OdeWorld::Object

git-svn-id: svn://anubis/anaglym/trunk@54 99a6e188-d820-4881-8870-2d33a10e2619
This commit is contained in:
Josh Holtrop 2009-10-08 00:46:57 +00:00
parent 8f7fc49436
commit d595278039
2 changed files with 2 additions and 5 deletions

View File

@ -331,6 +331,7 @@ void Engine::doPhysics()
void Engine::Object::loadPhy(const std::string & path, bool static_data) void Engine::Object::loadPhy(const std::string & path, bool static_data)
{ {
is_static = static_data;
geoms = g_engine->m_world.loadPhy(path, &body, static_data); geoms = g_engine->m_world.loadPhy(path, &body, static_data);
} }

View File

@ -17,17 +17,13 @@ class Engine
class Object class Object
{ {
public: public:
Object() { body = 0; } Object() { body = 0; is_static = false; }
WFObj * wfobj; WFObj * wfobj;
GLuint display_list; GLuint display_list;
std::vector<dGeomID> geoms; std::vector<dGeomID> geoms;
dBodyID body; dBodyID body;
void draw(); void draw();
void loadPhy(const std::string & path,
bool static_data = false);
void setPosition(double x, double y, double z);
void getPosition(double * x, double * y, double * z);
}; };
Engine(); Engine();