freezeParticle, sphereCollision, particle pointers in constraint functions