瀏覽代碼

removed fluid capping

Zachary Pavlov 18 年之前
父節點
當前提交
d84feaf51f
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      panda/src/collide/collisionLevelStateBase.cxx

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

@@ -77,10 +77,10 @@ prepare_collider(const ColliderDef &def, const NodePath &root) {
     if (bv->as_bounding_sphere()) {
     if (bv->as_bounding_sphere()) {
       LPoint3f pos_delta = def._node_path.get_pos_delta(root);
       LPoint3f pos_delta = def._node_path.get_pos_delta(root);
       
       
-      LVector3f cap(pos_delta);
-      if(cap.length()>fluid_cap_amount) {
-        pos_delta=LPoint3f(cap/cap.length())*fluid_cap_amount;
-      }
+      //LVector3f cap(pos_delta);
+      //if(cap.length()>fluid_cap_amount) {
+      //  pos_delta=LPoint3f(cap/cap.length())*fluid_cap_amount;
+      //}
       if (pos_delta != LVector3f::zero()) {
       if (pos_delta != LVector3f::zero()) {
         // If the node has a delta, we have to include the starting
         // If the node has a delta, we have to include the starting
         // position in the volume as well.  We only do this for bounding
         // position in the volume as well.  We only do this for bounding