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

◆ ShimmerCollision()

void Terraria.Player.ShimmerCollision ( bool fallThrough,
bool ignorePlats,
bool noCollision )
inline

Definition at line 21573 of file Player.cs.

21574 {
21575 //IL_001b: Unknown result type (might be due to invalid IL or missing references)
21576 //IL_0020: Unknown result type (might be due to invalid IL or missing references)
21577 //IL_004c: Unknown result type (might be due to invalid IL or missing references)
21578 //IL_0056: Unknown result type (might be due to invalid IL or missing references)
21579 //IL_005b: Unknown result type (might be due to invalid IL or missing references)
21580 //IL_0067: Unknown result type (might be due to invalid IL or missing references)
21581 //IL_0026: Unknown result type (might be due to invalid IL or missing references)
21582 //IL_002c: Unknown result type (might be due to invalid IL or missing references)
21583 //IL_0041: Unknown result type (might be due to invalid IL or missing references)
21584 //IL_0046: Unknown result type (might be due to invalid IL or missing references)
21585 //IL_008c: Unknown result type (might be due to invalid IL or missing references)
21586 //IL_00a8: Unknown result type (might be due to invalid IL or missing references)
21587 //IL_00ad: Unknown result type (might be due to invalid IL or missing references)
21588 //IL_00ae: Unknown result type (might be due to invalid IL or missing references)
21589 //IL_00b3: Unknown result type (might be due to invalid IL or missing references)
21590 int num = ((!onTrack) ? height : (height - 20));
21591 Vector2 vector = velocity;
21592 if (!noCollision)
21593 {
21594 velocity = Collision.TileCollision(position, velocity, width, num, fallThrough, ignorePlats, (int)gravDir);
21595 }
21596 Vector2 vector2 = velocity * 0.375f;
21597 if (velocity.X != vector.X)
21598 {
21599 vector2.X = velocity.X;
21600 }
21601 if (velocity.Y != vector.Y)
21602 {
21603 vector2.Y = velocity.Y;
21604 }
21605 position += vector2;
21606 if (shimmerImmune && !noCollision)
21607 {
21609 }
21610 }
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
bool shimmerImmune
Definition Player.cs:2158

References Terraria.Player.gravDir, Terraria.Entity.height, Terraria.Player.onTrack, Terraria.Entity.position, Terraria.Player.shimmerImmune, 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: