added loadPhy() to Engine::Object
git-svn-id: svn://anubis/anaglym/trunk@36 99a6e188-d820-4881-8870-2d33a10e2619
This commit is contained in:
parent
d476eb4639
commit
cb1186d9e8
6
ag.cc
6
ag.cc
@ -119,11 +119,7 @@ namespace ag
|
||||
lua_setfield(L, -2, "draw");
|
||||
if (physpath != "")
|
||||
{
|
||||
/* TODO: ODE info */
|
||||
#if 0
|
||||
dGeomID gid =
|
||||
g_engine->getWorld().loadPhy(physpath);
|
||||
#endif
|
||||
g_engine->getObject(id)->loadPhy(physpath);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
@ -170,3 +170,8 @@ Engine::Object * Engine::getObject(int id)
|
||||
void Engine::run()
|
||||
{
|
||||
}
|
||||
|
||||
void Engine::Object::loadPhy(const std::string & path, bool static_data)
|
||||
{
|
||||
m_geoms = g_engine->m_world.loadPhy(path, static_data);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user