Added SceneNode::GetAABB()

Former-commit-id: 3ed0a0140e6afabeb915e763e6ead33c7f12fba5
This commit is contained in:
Lynix
2012-12-02 17:01:39 +01:00
parent b06acfcffd
commit 325ac4e642
3 changed files with 16 additions and 0 deletions

View File

@@ -47,6 +47,19 @@ const NzAnimation* NzModel::GetAnimation() const
return m_animation;
}
const NzAxisAlignedBox& NzModel::GetAABB() const
{
#if NAZARA_3D_SAFE
if (!m_mesh)
{
NazaraError("Model has no mesh");
return NzAxisAlignedBox::Null;
}
#endif
return m_mesh->GetAABB();
}
const NzMaterial* NzModel::GetMaterial(unsigned int matIndex) const
{
#if NAZARA_3D_SAFE