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

◆ Bottom

Vector2 Terraria.Entity.Bottom
getsetinherited

Definition at line 169 of file Entity.cs.

170 {
171 get
172 {
173 //IL_0028: Unknown result type (might be due to invalid IL or missing references)
174 return new Vector2(position.X + (float)(width / 2), position.Y + (float)height);
175 }
176 set
177 {
178 //IL_0001: Unknown result type (might be due to invalid IL or missing references)
179 //IL_0011: Unknown result type (might be due to invalid IL or missing references)
180 //IL_001f: Unknown result type (might be due to invalid IL or missing references)
181 //IL_0024: Unknown result type (might be due to invalid IL or missing references)
182 position = new Vector2(value.X - (float)(width / 2), value.Y - (float)height);
183 }
184 }
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

Referenced by Terraria.NPC.AI_121_QueenSlime(), Terraria.NPC.AI_123_Deerclops_FindSpotToSpawnSpike(), Terraria.NPC.AI_123_Deerclops_TryMakingSpike_FindBestY(), Terraria.Cinematics.DD2Film.CreateOgre(), Terraria.Player.FindSharpTearsSpot(), Terraria.Collision.GetEntityEdgeTiles(), Terraria.NPC.GetFairyTreasureCoords(), Terraria.GameContent.Golf.GolfHelper.HitGolfBall(), Terraria.GameContent.Golf.GolfHelper.IsGolfShotValid(), Terraria.GameContent.PlayerSittingHelper.SitDown(), Terraria.Cinematics.DD2Film.SpawnGoblin(), Terraria.Cinematics.DD2Film.SpawnJavalinThrower(), Terraria.Cinematics.DD2Film.SpawnWitherBeast(), Terraria.GameContent.PlayerSleepingHelper.StartSleeping(), Terraria.DataStructures.NPCFollowState.UpdateBreadcrumbs(), and Terraria.GameContent.Golf.GolfHelper.ValidateShot().