Jump to content
  • Advertisement
Sign in to follow this  
Kurt-olsson

Circle line intersection time

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

If you intended to correct an error in the post then please contact us.

Recommended Posts

[]I am trying some sliding with a 2d circle on multipleclines (any angles) . When desciding which one is closest i have to solve the smallest t of all lines. Today i use a loop with small delta movements to get intersection time, but i think this is a slow process... Anyone have a good method for a circle with velocity against line? All in 2d.[/]

Share this post


Link to post
Share on other sites
Advertisement

[]I am trying some sliding with a 2d circle on multipleclines (any angles) . When desciding which one is closest i have to solve the smallest t of all lines. Today i use a loop with small delta movements to get intersection time, but i think this is a slow process... Anyone have a good method for a circle with velocity against line? All in 2d.[/]


http://en.wikipedia.org/wiki/Line%E2%80%93sphere_intersection

you can also do a "sphere line intersection" search in this forum and find the equation that does the trick. I ran into the same challenge myself about a year ago.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!