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

◆ BottomRight

Vector2 Terraria.Entity.BottomRight
getsetinherited

Definition at line 203 of file Entity.cs.

204 {
205 get
206 {
207 //IL_0026: Unknown result type (might be due to invalid IL or missing references)
208 return new Vector2(position.X + (float)width, position.Y + (float)height);
209 }
210 set
211 {
212 //IL_0001: Unknown result type (might be due to invalid IL or missing references)
213 //IL_000f: Unknown result type (might be due to invalid IL or missing references)
214 //IL_001d: Unknown result type (might be due to invalid IL or missing references)
215 //IL_0022: Unknown result type (might be due to invalid IL or missing references)
216 position = new Vector2(value.X - (float)width, value.Y - (float)height);
217 }
218 }
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.Player.QuickMinecart(), Terraria.Collision.StepConveyorBelt(), and Terraria.GameContent.PressurePlateHelper.UpdatePlayerPosition().