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

◆ GetFairyCircleOffset()

Vector2 Terraria.NPC.GetFairyCircleOffset ( float elapsedTime,
float circleRotation,
float circleHeight )
inlineprivate

Definition at line 51170 of file NPC.cs.

51171 {
51172 //IL_000d: Unknown result type (might be due to invalid IL or missing references)
51173 //IL_001c: Unknown result type (might be due to invalid IL or missing references)
51174 //IL_0021: Unknown result type (might be due to invalid IL or missing references)
51175 //IL_0031: Unknown result type (might be due to invalid IL or missing references)
51176 //IL_0036: Unknown result type (might be due to invalid IL or missing references)
51177 //IL_003f: Unknown result type (might be due to invalid IL or missing references)
51178 //IL_0045: Unknown result type (might be due to invalid IL or missing references)
51179 //IL_0046: Unknown result type (might be due to invalid IL or missing references)
51180 return ((((float)Math.PI * 2f * elapsedTime + (float)Math.PI / 2f).ToRotationVector2() + new Vector2(0f, -1f)) * new Vector2((float)(6 * -direction), circleHeight)).RotatedBy(circleRotation);
51181 }

References Terraria.Entity.direction.

Referenced by Terraria.NPC.AI_112_FairyCritter().

+ Here is the caller graph for this function: