# colosion between line and an arc. is there a formula?

This topic is 4894 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

i want to see whether a line (represented by 2 points) and an arc (represented by center point radius and angles) colide with eachother. is there a formula or an algorythem to check it? i tried to make it myself... but it's hard. any one can help?

##### Share on other sites
Quote:
 is there a formula or an algorythem to check it?
Yes. Start by finding the intersection point, if any, between the line and a circle that has the same center and radius as the arc. Also, find the two endpoints of the arc. If the intersection point is on the arc, it will be on one side of the line passing through the arc endpoints. If it is on the other side, the line does not intersect the arc.

• ### What is your GameDev Story?

In 2019 we are celebrating 20 years of GameDev.net! Share your GameDev Story with us.

• 9
• 13
• 9
• 9
• 15
• ### Forum Statistics

• Total Topics
634075
• Total Posts
3015349
×