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

◆ BloodNautilus_GetMouthPositionAndRotation()

void Terraria.NPC.BloodNautilus_GetMouthPositionAndRotation ( out Vector2 mouthPosition,
out Vector2 mouthDirection )
inline

Definition at line 71847 of file NPC.cs.

71848 {
71849 //IL_0028: Unknown result type (might be due to invalid IL or missing references)
71850 //IL_002d: Unknown result type (might be due to invalid IL or missing references)
71851 //IL_0034: Unknown result type (might be due to invalid IL or missing references)
71852 //IL_003a: Unknown result type (might be due to invalid IL or missing references)
71853 //IL_0044: Unknown result type (might be due to invalid IL or missing references)
71854 //IL_0049: Unknown result type (might be due to invalid IL or missing references)
71855 //IL_004e: Unknown result type (might be due to invalid IL or missing references)
71856 float num = rotation + 0.47123894f * (float)spriteDirection;
71857 if (spriteDirection == -1)
71858 {
71859 num += (float)Math.PI;
71860 }
71861 mouthDirection = num.ToRotationVector2();
71862 mouthPosition = base.Center + mouthDirection * 50f;
71863 }
int spriteDirection
Definition NPC.cs:1143
float rotation
Definition NPC.cs:1116

References Terraria.NPC.rotation, and Terraria.NPC.spriteDirection.

Referenced by Terraria.NPC.AI_117_BloodNautilus(), and Terraria.NPC.CanReflectProjectile().

+ Here is the caller graph for this function: