Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ AI_173_HallowBossRainbowTrail()

void Terraria.Projectile.AI_173_HallowBossRainbowTrail ( )
inlineprivate

Definition at line 37412 of file Projectile.cs.

37413 {
37414 Opacity = Utils.GetLerpValue(0f, 60f, timeLeft, clamped: true) * Utils.GetLerpValue(660f, 600f, timeLeft, clamped: true);
37415 float num = (float)Math.PI / 360f;
37416 float num2 = 30f;
37417 velocity = velocity.RotatedBy(ai[0]);
37418 if (ai[0] < num)
37419 {
37420 ai[0] += num / num2;
37421 }
37422 rotation = velocity.ToRotation() + (float)Math.PI / 2f;
37423 }
const double PI
Definition Math.cs:16
Vector2 velocity
Definition Entity.cs:16

References Terraria.Utils.GetLerpValue(), and System.Math.PI.