Primitive drawer fix for reverse gravity

This commit is contained in:
Dominic committed 2021-09-10 00:57:54 -05:00
1 parent fa028a18ea
commit 2aba6946df
1 file changed
+4
+4
View File
@@ -88,6 +88,10 @@ namespace CalamityMod
// Flip the matrix around 180 degrees.
effectView *= Matrix.CreateRotationZ(MathHelper.Pi);
// Account for the inverted gravity effect.
if (Main.LocalPlayer.gravDir == -1f)
effectView *= Matrix.CreateScale(1f, -1f, 1f) * Matrix.CreateTranslation(0f, height, 0f);
// And account for the current zoom.
effectView *= zoomScaleMatrix;