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:
parent
8f7fc49436
commit
d595278039
@ -331,6 +331,7 @@ void Engine::doPhysics()
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
|
@ -17,17 +17,13 @@ class Engine
|
||||
class Object
|
||||
{
|
||||
public:
|
||||
Object() { body = 0; }
|
||||
Object() { body = 0; is_static = false; }
|
||||
WFObj * wfobj;
|
||||
GLuint display_list;
|
||||
std::vector<dGeomID> geoms;
|
||||
dBodyID body;
|
||||
|
||||
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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user