public bool Intersects(Hitbox other, Vector2f myPos, Vector2f otherPos) { float dist = DistanceTo(other, myPos, otherPos); return(dist < Radius + other.Radius); }
public float AngleTo(Hitbox other, Vector2f myPos, Vector2f otherPos) { var delta = (otherPos + other.Position) - (myPos + Position); return((float)Math.Atan2(delta.Y, delta.X)); }
public Bullet(int textureIndex, Hitbox hitbox, Vector2f position, float strength, bool isPiercing) : base("Content/bullets.png", textureIndex, hitbox, position) { Strength = strength; IsPiercing = isPiercing; }