rectAttackable method

Vector2Rect rectAttackable()

Implementation

Vector2Rect rectAttackable() => this.isObjectCollision()
    ? (this as ObjectCollision).rectCollision
    : position;