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

◆ CanFitSpace()

bool Terraria.Player.CanFitSpace ( int heightBoost)
inline

Definition at line 6332 of file Player.cs.

6333 {
6334 //IL_0006: Unknown result type (might be due to invalid IL or missing references)
6335 //IL_0019: Unknown result type (might be due to invalid IL or missing references)
6336 //IL_001e: Unknown result type (might be due to invalid IL or missing references)
6337 //IL_0024: Unknown result type (might be due to invalid IL or missing references)
6338 //IL_0029: Unknown result type (might be due to invalid IL or missing references)
6339 int num = 42 + heightBoost;
6340 return Collision.IsClearSpotTest(position + new Vector2(0f, (float)(height - num)) + velocity, 16f, width, num, fallThrough: true, fall2: true);
6341 }
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

References Terraria.Entity.height, Terraria.Collision.IsClearSpotTest(), Terraria.Entity.position, Terraria.Entity.velocity, and Terraria.Entity.width.

Referenced by Terraria.Player.UpdatePortableStoolUsage().

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