Skip to main content
gamedev.net
🔒 Locked

Circle line intersection time

Started by Kurt-olsson Dec 5, 2011 at 10:29 PM 0 replies 1.3k views
Original Post
Kurt-olsson
Kurt-olsson
[]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.[/]
heron3d
heron3d

[]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.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.