Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Jun 24, 2005, 12:50:34 AM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: now there is a possibility to render the bvtree through the world entities, the bvtree is a member of the worldentity

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

Legend:

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

    r4671 r4682  
    3131OBBTree::OBBTree ()
    3232{
     33  this->init();
     34}
     35
     36OBBTree::OBBTree(int depth, sVec3D *verticesList, const int length)
     37{
     38  this->init();
     39  this->spawnBVTree(depth, verticesList, length);
     40}
     41
     42
     43
     44void OBBTree::init()
     45{
    3346  this->setClassID(CL_OBB_TREE, "OBBTree");
    3447
     
    6174  this->id = 0;
    6275}
    63 
    6476
    6577/**
  • orxonox/trunk/src/lib/collision_detection/obb_tree.h

    r4670 r4682  
    2020  public:
    2121    OBBTree();
     22    OBBTree(int depth, sVec3D *verticesList, const int length);
    2223    virtual ~OBBTree();
     24    void init();
    2325
    2426    virtual void spawnBVTree(int depth, sVec3D *verticesList, const int length);
Note: See TracChangeset for help on using the changeset viewer.