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:
parent
e1aa35b4cd
commit
e265cf21b7
@ -1357,6 +1357,8 @@ void Engine::Object::createManagedObject()
|
|||||||
m_ode_object->addBox(m_args);
|
m_ode_object->addBox(m_args);
|
||||||
float aabb[6] = {-(*m_args)[0], -(*m_args)[1], -(*m_args)[2],
|
float aabb[6] = {-(*m_args)[0], -(*m_args)[1], -(*m_args)[2],
|
||||||
(*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));
|
memcpy(m_aabb, aabb, sizeof(m_aabb));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user