renamed CCYLINDER to CAPSULE
git-svn-id: svn://anubis/anaglym/trunk@173 99a6e188-d820-4881-8870-2d33a10e2619
This commit is contained in:
parent
98eee6fc87
commit
cdfaf84c28
@ -892,7 +892,7 @@ void Engine::Object::createManagedObject()
|
||||
m_args->push_back(0);
|
||||
m_ode_object->addCylinder(m_args);
|
||||
break;
|
||||
case OdeWorld::CCYLINDER:
|
||||
case OdeWorld::CAPSULE:
|
||||
while (m_args->size() < 8)
|
||||
m_args->push_back(0);
|
||||
m_ode_object->addCapsule(m_args);
|
||||
@ -1069,7 +1069,7 @@ void Engine::Object::render()
|
||||
glPopMatrix();
|
||||
}
|
||||
break;
|
||||
case OdeWorld::CCYLINDER: {
|
||||
case OdeWorld::CAPSULE: {
|
||||
glPushAttrib(GL_TRANSFORM_BIT); /* save current clip planes */
|
||||
double halfheight = (*m_args)[1] / 2.0;
|
||||
glPushMatrix();
|
||||
|
2
ag.cc
2
ag.cc
@ -516,7 +516,7 @@ namespace ag
|
||||
refptr< vector<float> > args = new vector<float>();
|
||||
args->push_back(lua_tonumber(L, 1));
|
||||
args->push_back(lua_tonumber(L, 2));
|
||||
addManagedObject(L, is_static, OdeWorld::CCYLINDER, args);
|
||||
addManagedObject(L, is_static, OdeWorld::CAPSULE, args);
|
||||
}
|
||||
else
|
||||
lua_pushnil(L);
|
||||
|
Loading…
x
Reference in New Issue
Block a user