Browse Source

removed the event clearing that happened while airborne. This caused all manner of wierd issues

Zachary Pavlov 17 years ago
parent
commit
d8e2e84c43
1 changed files with 4 additions and 0 deletions
  1. 4 0
      panda/src/collide/collisionHandlerGravity.cxx

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

@@ -270,10 +270,14 @@ handle_entries() {
           _impact_velocity = _current_velocity;
           // These values are used by is_on_ground().
           _current_velocity = _airborne_height = 0.0f;
+        }
+/*      //ZAC - Commented out, until someone can give me a good reason why we
+        //need such wierd behaviour
         } else {
           // ...we're airborne.
           _current_colliding.clear();
         }
+*/
 
         CPT(TransformState) trans = def._target.get_transform();
         LVecBase3f pos = trans->get_pos();