AxisAlignedBox::Transform now apply translation

Added an optionnal argument to prevent translation from being applied
Updated demo


Former-commit-id: c56cb04733379eb6dda98b150931fb0e496ef889
This commit is contained in:
Lynix
2012-12-28 22:57:40 +01:00
parent 31a04abcaa
commit 49f37e17ae
3 changed files with 4 additions and 5 deletions

View File

@@ -483,7 +483,7 @@ int main()
NzDebugDrawer::Draw(hellknight.GetAABB());
NzAxisAlignedBox aabb(drfreak.GetMesh()->GetAABB());
aabb.Transform(drfreak.GetTransformMatrix());
aabb.Transform(drfreak.GetTransformMatrix(), false);
NzRenderer::SetMatrix(nzMatrixType_World, NzMatrix4f::Translate(drfreak.GetDerivedTranslation()));
NzDebugDrawer::SetPrimaryColor(NzColor::Red);