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

◆ RotatedByRandom()

static Vector2 Terraria.Utils.RotatedByRandom ( this Vector2 spinninpoint,
double maxRadians )
inlinestatic

Definition at line 1504 of file Utils.cs.

1505 {
1506 //IL_0000: Unknown result type (might be due to invalid IL or missing references)
1507 //IL_001c: Unknown result type (might be due to invalid IL or missing references)
1508 //IL_0022: Unknown result type (might be due to invalid IL or missing references)
1509 //IL_0023: Unknown result type (might be due to invalid IL or missing references)
1510 return spinninpoint.RotatedBy(Main.rand.NextDouble() * maxRadians - Main.rand.NextDouble() * maxRadians);
1511 }

References Terraria.Main.rand.

Referenced by Terraria.Projectile.DoRainbowCrystalStaffExplosion(), Terraria.Projectile.HandleMovement(), Terraria.Mount.UseAbility(), Terraria.NPC.VanillaAI_Inner(), and Terraria.NPC.VanillaHitEffect().

+ Here is the caller graph for this function: