Sign in to follow this  
yoni1993

Point in Circle

Recommended Posts

yoni1993    122
I am currently working on enemies radar. I was working on a rectangle enemies radar. Now that im using a rounded enemies radar image, some enemies on radar may get drawed our of the circle of the radar, casue its rounded and not rectangle. How i can know if the point is in the circle ? thanks alot.

Share this post


Link to post
Share on other sites
dgreen02    1428
A simple distance test to see if the distance from the center of the radar to the enemies screen position is greater than the radius of the radar circle.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this