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

◆ Collision_WalkDownSlopes()

void Terraria.NPC.Collision_WalkDownSlopes ( )
inlineprivate

Definition at line 110572 of file NPC.cs.

110573 {
110574 //IL_0001: Unknown result type (might be due to invalid IL or missing references)
110575 //IL_0008: Unknown result type (might be due to invalid IL or missing references)
110576 //IL_000e: Unknown result type (might be due to invalid IL or missing references)
110577 //IL_0025: Unknown result type (might be due to invalid IL or missing references)
110578 //IL_002a: Unknown result type (might be due to invalid IL or missing references)
110579 //IL_0031: Unknown result type (might be due to invalid IL or missing references)
110580 //IL_0042: Unknown result type (might be due to invalid IL or missing references)
110581 //IL_0053: Unknown result type (might be due to invalid IL or missing references)
110582 //IL_0064: Unknown result type (might be due to invalid IL or missing references)
110583 _ = velocity;
110584 Vector4 vector = Collision.WalkDownSlope(position, velocity, width, height, gravity);
110585 position.X = vector.X;
110586 position.Y = vector.Y;
110587 velocity.X = vector.Z;
110588 velocity.Y = vector.W;
110589 }
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
int width
The width of this Entity's hitbox, in pixels.
Definition Entity.cs:46
int height
The height of this Entity's hitbox, in pixels.
Definition Entity.cs:51
float gravity
The current change in velocity due to gravity applied every frame. Multiply F:Terraria....
Definition NPC.cs:1619

References Terraria.Collision.WalkDownSlope().

+ Here is the call graph for this function: