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

◆ SlopeDownMovement()

void Terraria.Player.SlopeDownMovement ( )
inline

Definition at line 21547 of file Player.cs.

21548 {
21549 //IL_0033: Unknown result type (might be due to invalid IL or missing references)
21550 //IL_0039: Unknown result type (might be due to invalid IL or missing references)
21551 //IL_0057: Unknown result type (might be due to invalid IL or missing references)
21552 //IL_005c: Unknown result type (might be due to invalid IL or missing references)
21553 //IL_0063: Unknown result type (might be due to invalid IL or missing references)
21554 //IL_0074: Unknown result type (might be due to invalid IL or missing references)
21555 //IL_0085: Unknown result type (might be due to invalid IL or missing references)
21556 //IL_0096: Unknown result type (might be due to invalid IL or missing references)
21557 sloping = false;
21558 if (!mount.Active || mount.Type != 48)
21559 {
21560 float y = velocity.Y;
21561 Vector4 vector = Collision.WalkDownSlope(position, velocity, width, height, gravity * gravDir);
21562 position.X = vector.X;
21563 position.Y = vector.Y;
21564 velocity.X = vector.Z;
21565 velocity.Y = vector.W;
21566 if (velocity.Y != y)
21567 {
21568 sloping = true;
21569 }
21570 }
21571 }
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
bool Active
Definition Mount.cs:348
Mount mount
This player's T:Terraria.Mount. Do not overwrite this value. Instead, call M:Terraria....
Definition Player.cs:2323

References Terraria.Mount.Active, Terraria.Player.gravDir, Terraria.Player.gravity, Terraria.Entity.height, Terraria.Player.mount, Terraria.Entity.position, Terraria.Player.sloping, Terraria.Mount.Type, Terraria.Entity.velocity, Terraria.Collision.WalkDownSlope(), and Terraria.Entity.width.

Referenced by Terraria.Player.DryCollision(), and Terraria.Player.Update().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: