fixed AABB and getSize() problem for boxes

git-svn-id: svn://anubis/anaglym/trunk@321 99a6e188-d820-4881-8870-2d33a10e2619
This commit is contained in:
Josh Holtrop 2010-09-23 17:00:33 +00:00
parent e1aa35b4cd
commit e265cf21b7

View File

@ -1357,6 +1357,8 @@ void Engine::Object::createManagedObject()
m_ode_object->addBox(m_args);
float aabb[6] = {-(*m_args)[0], -(*m_args)[1], -(*m_args)[2],
(*m_args)[0], (*m_args)[1], (*m_args)[2]};
for (int i = 0; i < 6; i++)
aabb[i] /= 2.0f;
memcpy(m_aabb, aabb, sizeof(m_aabb));
break;
}