In my game, I implemented intersection of two lines and line with circle. How can I implement intersection line with some object (like cloud in sky)? I need point of intersection.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
When your object consists of line segments, you can intersect with those. For intersecting with a line segment you can use your code for line intersection, but must additionally make sure that the intersection point is between the end points.