Condemnation rotation issue
This commit is contained in:
1 parent
643cb628a8
commit
6a304b5888
1 file changed
+2
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user