Skip to content
Advertisement

Tag: overlap

Determining whether Ellipse2D is overlapping with Rectangle

Hello guys I would like to ask how to determine whether my Ellipse2D contains a Rectangle Let’s say I got rectangle as a player hitbox and for the enemy sight I’ve got an ellipse named sight what is the best way to determine whether these two are overlapping because if I use sight.contains(playerHitBox) seems like the whole rectangle has to

Advertisement