Added angle check to avoid acos errors in FannThreeParticleForce