Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 29, 2006, 11:39:12 PM (18 years ago)
Author:
patrick
Message:

collision reactin output different

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/single_player_map/src/lib/collision_reaction/cr_physics_ground_walk.cc

    r8925 r8927  
    8787    Vector normal = ce->getGroundNormal();
    8888
    89     // collision position maths
     89    // calculate the collision position
    9090    Vector collPos =  collision->getEntityB()->getAbsCoor()  + box->center - ce->getCollisionPosition();
    9191
     
    9898        front = collPos.x - box->halfLength[0];
    9999
    100         PRINTF(0)("front: %f\n", front);
    101         PRINTF(0)("in wall %i\n", ce->isInWall());
     100//         PRINTF(0)("front: %f\n", front);
     101//         PRINTF(0)("in wall %i\n", ce->isInWall());
    102102
    103103        // object is beneath the plane (ground)
     
    119119        height = collPos.y - box->halfLength[1];
    120120
    121         PRINTF(0)("height: %f\n", height);
    122         PRINTF(0)("in wall %i\n", ce->isInWall());
     121//         PRINTF(0)("height: %f\n", height);
     122//         PRINTF(0)("in wall %i\n", ce->isInWall());
    123123
    124124        // object is beneath the plane (ground)
     
    140140        side = collPos.z - box->halfLength[2];
    141141
    142         PRINTF(0)("side: %f\n", side);
    143         PRINTF(0)("in wall %i\n", ce->isInWall());
     142//         PRINTF(0)("side: %f\n", side);
     143//         PRINTF(0)("in wall %i\n", ce->isInWall());
    144144
    145145        // object is beneath the plane (ground)
     
    155155        break;
    156156    }
     157    PRINTF(0)("collision distanzes: x: %f, y: %f, z: %f\n", front, height, side);
    157158  }
    158159
Note: See TracChangeset for help on using the changeset viewer.