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

◆ Collision_MoveWhileDry()

void Terraria.NPC.Collision_MoveWhileDry ( )
inlineprivate

Definition at line 109688 of file NPC.cs.

109689 {
109690 //IL_0057: Unknown result type (might be due to invalid IL or missing references)
109691 //IL_005c: Unknown result type (might be due to invalid IL or missing references)
109692 //IL_006f: Unknown result type (might be due to invalid IL or missing references)
109693 //IL_0075: Unknown result type (might be due to invalid IL or missing references)
109694 //IL_007a: Unknown result type (might be due to invalid IL or missing references)
109695 //IL_007f: Unknown result type (might be due to invalid IL or missing references)
109696 if (Collision.up)
109697 {
109698 velocity.Y = 0.01f;
109699 }
109700 if (oldVelocity.X != velocity.X)
109701 {
109702 collideX = true;
109703 }
109704 if (oldVelocity.Y != velocity.Y)
109705 {
109706 collideY = true;
109707 }
109710 position += velocity;
109711 }
Vector2 oldPosition
Definition Entity.cs:35
int oldDirection
Definition Entity.cs:39
Vector2 velocity
The velocity of this Entity in world coordinates per tick.
Definition Entity.cs:33
Vector2 position
The position of this Entity in world coordinates.
Definition Entity.cs:28
Vector2 oldVelocity
Definition Entity.cs:37
bool collideX
Definition NPC.cs:1134
bool collideY
Definition NPC.cs:1136

References Terraria.Collision.up.