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

◆ HoneyCollision()

void Terraria.Player.HoneyCollision ( bool fallThrough,
bool ignorePlats )
inline

Definition at line 21612 of file Player.cs.

21613 {
21614 //IL_001b: Unknown result type (might be due to invalid IL or missing references)
21615 //IL_0020: Unknown result type (might be due to invalid IL or missing references)
21616 //IL_0023: Unknown result type (might be due to invalid IL or missing references)
21617 //IL_0029: Unknown result type (might be due to invalid IL or missing references)
21618 //IL_003e: Unknown result type (might be due to invalid IL or missing references)
21619 //IL_0043: Unknown result type (might be due to invalid IL or missing references)
21620 //IL_0049: Unknown result type (might be due to invalid IL or missing references)
21621 //IL_0053: Unknown result type (might be due to invalid IL or missing references)
21622 //IL_0058: Unknown result type (might be due to invalid IL or missing references)
21623 //IL_0064: Unknown result type (might be due to invalid IL or missing references)
21624 //IL_0089: Unknown result type (might be due to invalid IL or missing references)
21625 //IL_00a5: Unknown result type (might be due to invalid IL or missing references)
21626 //IL_00aa: Unknown result type (might be due to invalid IL or missing references)
21627 //IL_00ab: Unknown result type (might be due to invalid IL or missing references)
21628 //IL_00b0: Unknown result type (might be due to invalid IL or missing references)
21629 int num = ((!onTrack) ? height : (height - 20));
21630 Vector2 vector = velocity;
21631 velocity = Collision.TileCollision(position, velocity, width, num, fallThrough, ignorePlats, (int)gravDir);
21632 Vector2 vector2 = velocity * 0.25f;
21633 if (velocity.X != vector.X)
21634 {
21635 vector2.X = velocity.X;
21636 }
21637 if (velocity.Y != vector.Y)
21638 {
21639 vector2.Y = velocity.Y;
21640 }
21641 position += vector2;
21643 }
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
void TryFloatingInFluid()
Definition Player.cs:21678

References Terraria.Player.gravDir, Terraria.Entity.height, Terraria.Player.onTrack, Terraria.Entity.position, Terraria.Collision.TileCollision(), Terraria.Player.TryFloatingInFluid(), Terraria.Entity.velocity, and Terraria.Entity.width.

Referenced by Terraria.Player.Update().

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