How shoudl I do if I want to check if something is within a circle? In 2D.
Example, if someone is caught in an exlopision then I want that area to be circular not square. I know one solution is to calculate the distance to the center of the explosion and then check each object if it is closer than that, but this seems to be an inefficient way, or?
Example, if someone is caught in an exlopision then I want that area to be circular not square. I know one solution is to calculate the distance to the center of the explosion and then check each object if it is closer than that, but this seems to be an inefficient way, or?