Browse Source

removed 'highest collision only' rule

Zachary Pavlov 16 years ago
parent
commit
233bbe6f1e
1 changed files with 4 additions and 4 deletions
  1. 4 4
      panda/src/collide/collisionHandlerGravity.cxx

+ 4 - 4
panda/src/collide/collisionHandlerGravity.cxx

@@ -102,9 +102,9 @@ set_highest_collision(const NodePath &target_node_path, const NodePath &from_nod
 
   // We only collide with things we are impacting with.
   // Remove the collisions:
-  _current_colliding.clear();
+  //_current_colliding.clear();
   // Add only the one that we're impacting with:
-  add_entry(highest);
+  // add_entry(highest);
   
   return max_height;
 }
@@ -172,9 +172,9 @@ set_highest_collision(const NodePath &target_node_path, const NodePath &from_nod
   
   // We only collide with things we are impacting with.
   // Remove the collisions:
-  _current_colliding.clear();
+  //_current_colliding.clear();
   // Add only the one that we're impacting with:
-  add_entry(highest);
+  //add_entry(highest);
   
   // Set the contact normal so that other code can make use of the
   // surface slope: