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

◆ ShimmerCollision()

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

Definition at line 22449 of file Player.cs.

22450 {
22451 int num = ((!onTrack) ? height : (height - 20));
22453 if (!noCollision)
22454 {
22455 velocity = Collision.TileCollision(position, velocity, width, num, fallThrough, ignorePlats, (int)gravDir);
22456 }
22457 Vector2 vector2 = velocity * 0.375f;
22458 if (velocity.X != vector.X)
22459 {
22460 vector2.X = velocity.X;
22461 }
22462 if (velocity.Y != vector.Y)
22463 {
22464 vector2.Y = velocity.Y;
22465 }
22466 position += vector2;
22467 if (shimmerImmune && !noCollision)
22468 {
22470 }
22471 }
Vector2 velocity
Definition Entity.cs:16
Vector2 position
Definition Entity.cs:14
void TryFloatingInFluid()
Definition Player.cs:22509
bool shimmerImmune
Definition Player.cs:1583

References Terraria.Collision.TileCollision().