Added SceneNode::GetAABB()
Former-commit-id: 3ed0a0140e6afabeb915e763e6ead33c7f12fba5
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user