Primitive drawer fix for reverse gravity
This commit is contained in:
1 parent
fa028a18ea
commit
2aba6946df
1 file changed
+4
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user