Condemnation rotation issue

This commit is contained in:
Dominic committed 2021-06-14 05:27:59 -05:00
1 parent 643cb628a8
commit 6a304b5888
1 file changed
+2 -1
+2 -1
View File
@@ -114,8 +114,9 @@ namespace CalamityMod.Projectiles.Ranged
{
if (Main.myPlayer == projectile.owner)
{
float interpolant = Utils.InverseLerp(5f, 25f, projectile.Distance(Main.MouseWorld), true);
Vector2 oldVelocity = projectile.velocity;
projectile.velocity = projectile.SafeDirectionTo(Main.MouseWorld);
projectile.velocity = Vector2.Lerp(projectile.velocity, projectile.SafeDirectionTo(Main.MouseWorld), interpolant);
if (projectile.velocity != oldVelocity)
{
projectile.netSpam = 0;