Definition at line 48722 of file NPC.cs.
48723 {
48724
48725
48726
48727
48728
48729
48730
48731
48732
48733
48734
48735
48736
48737
48738
48739
48740
48745 {
48747 {
48748 velocity.X *= 0.95f;
48749 }
48751 }
48752 else
48753 {
48756 {
48757 velocity +=
ai[0].ToRotationVector2() * 0.06f;
48760 {
48762 ai[1] = Main.rand.Next(450, 600);
48763 ai[0] = Main.rand.NextFloat() * ((float)
Math.PI * 2
f);
48765 {
48766 ai[0] -= (float)
Math.PI;
48767 }
48769 }
48770 }
48771 else
48772 {
48774 }
48776 }
48779 {
48780 Vector2 v =
ai[0].ToRotationVector2();
48782 {
48784 }
48786 {
48788 }
48789 ai[0] = v.ToRotation();
48792 }
48793 }
bool wet
The Entity is currently in water. Projectile: Affects movement speed and some projectiles die when ...
Vector2 velocity
The velocity of this Entity in world coordinates per tick.
bool noGravity
If true, the npc will not be affected by gravity. Demon Eyes and other floating npc use this....
float[] ai
An array with 4 slots used for any sort of data storage, which is occasionally synced from the server...
References Terraria.NPC.ai, Terraria.NPC.collideX, Terraria.NPC.collideY, Terraria.Collision.GetWaterLineIterate(), Terraria.NPC.netUpdate, Terraria.NPC.noGravity, Terraria.Main.rand, Terraria.NPC.rotation, Terraria.Entity.velocity, and Terraria.Entity.wet.
Referenced by Terraria.NPC.VanillaAI_Inner().