sphere line time of collision,
Members - Reputation: 254
Posted 24 August 2012 - 05:47 AM
I need a algortihm for impact time t from sphere origin to destination. I have had this algorithm once but i can´t find it anywhere and i have search google. for hours.
I need a formula that can give me time of impact from a sphere with a velocity moving pass a line.
i need this so my sphere don´t go pass my walls if going to fast.
any help is apprichiated.
Members - Reputation: 635
Posted 24 August 2012 - 11:46 AM
Treat your line and a ray, if there is collision then check the boundary conditions of your line to make sure it actually collided. Once you get the distance between the two, you just divide by the velocity the sphere is traveling and you should have you'r time. Hope this helps.