removed fluid capping

This commit is contained in:
Zachary Pavlov 2007-10-17 18:11:00 +00:00
parent 3f4d1aada2
commit d84feaf51f
1 changed files with 4 additions and 4 deletions

View File

@ -77,10 +77,10 @@ prepare_collider(const ColliderDef &def, const NodePath &root) {
if (bv->as_bounding_sphere()) {
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 the node has a delta, we have to include the starting
// position in the volume as well. We only do this for bounding