Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5046 in orxonox.OLD for orxonox/trunk/src/lib/collision_detection


Ignore:
Timestamp:
Aug 16, 2005, 9:20:20 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: if a collision occures, the virtual WorldEntity::collidesWith(WorldEntity*, Vector) is called of both objects. the reaction to the collision has to be defined there. default reaction is still output into stdout console. There is now more information

Location:
orxonox/trunk/src/lib/collision_detection
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/collision_detection/obb_tree_node.cc

    r5044 r5046  
    655655    if( unlikely(this->nodeRight == NULL && this->nodeLeft == NULL))
    656656    {
    657       nodeA->collidesWith(nodeB);
    658       nodeB->collidesWith(nodeA);
     657      nodeA->collidesWith(nodeB, *((OBBTreeNode*)treeNode)->bvElement->center);
     658
     659      nodeB->collidesWith(nodeA, *this->bvElement->center);
    659660    }
    660661
  • orxonox/trunk/src/lib/collision_detection/obb_tree_node.h

    r5039 r5046  
    6969    int                 tmpLen2;                    //!< len vert data obbox2
    7070
    71     static float**       coMat;                     //!< temp covariance matrice save place - consumes less mem
    72     static float**       eigvMat;                   //!< temp eigenvector matrice save place
    73     static float*        eigvlMat;                  //!< temp eigenvalue vector save place
    74     static int*          rotCount;                  //!< temp rotations count save place: how many givens-rotations where needed to transform the matrix :)
     71    static float**      coMat;                      //!< temp covariance matrice save place - consumes less mem
     72    static float**      eigvMat;                    //!< temp eigenvector matrice save place
     73    static float*       eigvlMat;                   //!< temp eigenvalue vector save place
     74    static int*         rotCount;                   //!< temp rotations count save place: how many givens-rotations where needed to transform the matrix :)
    7575
    76     GLUquadricObj*    sphereObj;
     76    GLUquadricObj*      sphereObj;
    7777};
    7878
Note: See TracChangeset for help on using the changeset viewer.