fixed mistype

This commit is contained in:
Dave Schuyler 2003-08-06 22:59:25 +00:00
parent 977fc1c38a
commit 533a7976f7

View File

@ -75,7 +75,7 @@ get_child_vector(const PhysicsObject* po) {
physics_debug(" v "<<v<<" len "<<v.length() physics_debug(" v "<<v<<" len "<<v.length()
<<" friction "<<friction<<" len "<<friction.length() <<" friction "<<friction<<" len "<<friction.length()
<<" dot "<<(normalize(v).dot(normalize(friction)))); <<" dot "<<(normalize(v).dot(normalize(friction))));
assert(friction.almostEqual(LVector3f::zero()) assert(friction.almost_equal(LVector3f::zero())
|| IS_NEARLY_EQUAL(normalize(v).dot(normalize(friction)), -1.0f)); || IS_NEARLY_EQUAL(normalize(v).dot(normalize(friction)), -1.0f));
// cary said to cap this at zero so that friction can't reverse // cary said to cap this at zero so that friction can't reverse
// your direction, but it seems to me that if you're computing: // your direction, but it seems to me that if you're computing: