Skip to content

Posts tagged ‘sphere’

SDF: Resolving spherical and circular collision at high speeds in a verlet system.

January 17, 2009


The method ive found  to resolve spherical and circular collisions at high speed is borrowed from the spherical bounding box method. I first store the current distance between the two spheres/circles and then the  future distance between the two  .

cd = |p0_{1} - p1_{1}|


fd = |(p0_{1} + (p0_{1} - p0_{1-1})) - (p1_{1} + (p1_{1} - p1_{1-1})) |  

if this future distance is smaller than the combined radius’s I re imagine the current distance

cd = (cd \frac{cd}{fd})

and continue to do the standard method.