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

◆ SlopeDownMovement()

void Terraria.Player.SlopeDownMovement ( )
inline

Definition at line 22431 of file Player.cs.

22432 {
22433 sloping = false;
22434 if (!mount.Active || mount.Type != 48)
22435 {
22436 float y = velocity.Y;
22437 Vector4 vector = Collision.WalkDownSlope(position, velocity, width, height, gravity * gravDir);
22438 position.X = vector.X;
22439 position.Y = vector.Y;
22440 velocity.X = vector.Z;
22441 velocity.Y = vector.W;
22442 if (velocity.Y != y)
22443 {
22444 sloping = true;
22445 }
22446 }
22447 }
Vector2 velocity
Definition Entity.cs:16
Vector2 position
Definition Entity.cs:14
bool Active
Definition Mount.cs:345

References Terraria.Collision.WalkDownSlope().