11519 {
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11560 {
11561 return false;
11562 }
11563 bool flag = Collision.CanHit(
base.position,
width,
height,
ent.position,
ent.width,
ent.height) || Collision.CanHitLine(
base.Center +
new Vector2((
float)(
direction *
width / 2), (
float)(-
height / 3)), 0, 0,
ent.Center +
new Vector2(0
f, (
float)(-
ent.height / 3)), 0, 0) || Collision.CanHitLine(
base.Center +
new Vector2((
float)(
direction *
width / 2), (
float)(-
height / 3)), 0, 0,
ent.Center, 0, 0) || Collision.CanHitLine(
base.Center +
new Vector2((
float)(
direction *
width / 2), 0
f), 0, 0,
ent.Center +
new Vector2(0
f, (
float)(
ent.height / 3)), 0, 0);
11566 {
11568 {
11570 }
11575 {
11577 {
11579 }
11581 {
11583 }
11584 }
11586 }
11588 }
float Distance(Vector2 Other)
Vector2 position
The position of this Entity in world coordinates.
int width
The width of this Entity's hitbox, in pixels.
int height
The height of this Entity's hitbox, in pixels.
static GenSearch[] ExtendedCanHitCheckSearch
A T:Terraria.WorldBuilding.GenSearch to use when checking for collisions, in addition to standard hit...
static float[] ExtendedCanHitCheckRange
If non-zero, then the given projectile type (F:Terraria.Projectile.type) will check for collisions th...
float ownerHitCheckDistance
static Conditions.NotNull _cachedConditions_notNull
int type
The Projectile ID of this projectile. The Projectile ID is a unique number assigned to each Projectil...
static Conditions.IsSolid _cachedConditions_solid
static GenSearch Chain(GenSearch search, params GenCondition[] conditions)
static bool Find(Point origin, GenSearch search, out Point result)