sphere collision

Started by
13 comments, last by Dmytry 19 years, 3 months ago
again perfect, but wat about different radiuses?
Advertisement
r1 and r2 can be different.

Everything is better with Metal.

Quote:Original post by ramy
again perfect, but wat about different radiuses?

spheres have radiuses r1 and r2
in
P=(r1*C1+r2*C2)/(r1+r2)

That's is, obviously spheres can have different radiuses in my formula.
P=(r1*C1+r2*C2)/(r1+r2)
is for general case (r1 may be equal or not equal to r2) and
P = (C1+C2)/2
is for special case when r1=r2
sorry Dmytry oliii,

it worked, thx alot! i have caused alot of problems, but very thankful. :)
ops, sorry, there were typo.
Should be
P=(r2*C1+r1*C2)/(r1+r2)

This topic is closed to new replies.

Advertisement