VB Code:
Dim Distance as Single Distance = Sqr( (Obj1.x - Obj2.x)^2 + (Obj1.y - Obj2.y)^2 ) If Distance < Radius1 + Radius2 Then 'Collision! EndIf
|
Results 1 to 5 of 5
Thread: Round object collision detectionThreaded View
|
Click Here to Expand Forum to Full Width |