private RectangleF CheckTargetBox(CollisionBox hitbox, RectangleF boundBox, IEntity entity, CollisionComponent coll, CollisionBox targetBox)
{
RectangleF rect = targetBox.BoxAt(coll.PositionSrc.Position);
if (boundBox.IntersectsWith(rect))
{
coll.Touch(hitbox, targetBox);
Touch(targetBox, hitbox);
CollideWith(entity, hitbox, targetBox);
}
return boundBox;
}