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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user