浏览代码

misplaced paren

David Rose 22 年之前
父节点
当前提交
3001f98c0b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      panda/src/physics/physicsCollisionHandler.cxx

+ 1 - 1
panda/src/physics/physicsCollisionHandler.cxx

@@ -58,7 +58,7 @@ apply_friction(ColliderDef &def, LVector3f& vel, const LVector3f& force, float a
   if (vel!=LVector3f::zero()) {
     float friction_coefficient=0.0f;
     // Determine the friction:
-    if (fabs(force.dot(LVector3f::unit_z())<0.5f)) {
+    if (fabs(force.dot(LVector3f::unit_z()))<0.5f) {
       // ...The force is nearly horizontal, it is probably a wall.
       physics_debug("  wall friction");
       friction_coefficient=0.0f;