Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 21, 2005, 11:27:39 PM (18 years ago)
Author:
patrick
Message:

orxonox/trunk: the const collision detection war - strike

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/collision_detection/obb_tree_node.h

    r5684 r5688  
    2828    virtual ~OBBTreeNode();
    2929
    30     virtual void spawnBVTree(const int depth, sVec3D *verticesList, const int length);
     30    virtual void spawnBVTree(const int depth, const sVec3D *verticesList, unsigned int length);
    3131    virtual void spawnBVTree(const int depth, const modelInfo& modInfo);
    3232
     
    4242
    4343  private:
    44     void calculateBoxCovariance(OBB* box, sVec3D* verticesList, int length);
    45     void calculateBoxEigenvectors(OBB* box, sVec3D* verticesList, int length);
    46     void calculateBoxAxis(OBB* box, sVec3D* verticesList, int length);
     44    void calculateBoxCovariance(OBB* box, const sVec3D* verticesList, unsigned int length);
     45    void calculateBoxEigenvectors(OBB* box, const sVec3D* verticesList, unsigned int length);
     46    void calculateBoxAxis(OBB* box, const sVec3D* verticesList, unsigned int length);
    4747   
    4848    void calculateBoxCovariance(OBB* box, const modelInfo& modInfo);
     
    6262  private:
    6363    unsigned int        treeIndex;                  //!< Index number of the BV in the tree
    64     sVec3D*             vertices;                   //!< pointer to the vertices data
     64    const sVec3D*       vertices;                   //!< pointer to the vertices data
    6565    int                 numOfVertices;              //!< number of vertices in vertices data
    6666    int                 depth;                      //!< the depth of the node in the tree
    6767    static OBBTree*     obbTree;                    //!< reference to the obb tree
    6868    Plane*              separationPlane;            //!< the separation plane of the obb
    69     sVec3D*             sepPlaneCenter;             //!< only needed to draw plane @todo: separationPlane drawing
     69    const sVec3D*       sepPlaneCenter;             //!< only needed to draw plane @todo: separationPlane drawing
    7070    int                 longestAxisIndex;           //!< only needed to draw plane
    7171
Note: See TracChangeset for help on using the changeset viewer.