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

◆ AngleTo()

float Terraria.Entity.AngleTo ( Vector2 Destination)
inlineinherited

Definition at line 257 of file Entity.cs.

258 {
259 //IL_0000: Unknown result type (might be due to invalid IL or missing references)
260 //IL_0007: Unknown result type (might be due to invalid IL or missing references)
261 //IL_0013: Unknown result type (might be due to invalid IL or missing references)
262 //IL_001a: Unknown result type (might be due to invalid IL or missing references)
263 return (float)Math.Atan2(Destination.Y - Center.Y, Destination.X - Center.X);
264 }
Vector2 Center
Definition Entity.cs:70

References Terraria.Entity.Center.

Referenced by Terraria.NPC.AI_115_LadyBugs().

+ Here is the caller graph for this function: