Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4525 in orxonox.OLD


Ignore:
Timestamp:
Jun 7, 2005, 12:37:43 AM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: implemented some more bv, obb and bs functions now reached the point to start implementing it

Location:
orxonox/trunk/src/util/collision_detection
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/util/collision_detection/bounding_sphere.h

    r4514 r4525  
    1919  virtual ~BoundingSphere();
    2020
     21  inline const float getRadius () const { return this->radius; }
    2122
    2223 private:
    23 
     24  float radius;
    2425};
    2526
  • orxonox/trunk/src/util/collision_detection/bounding_volume.h

    r4524 r4525  
    2121
    2222  inline const Vector* getCenter() const { return this->center; }
    23   inline const Vector* getAxis () const { return this->axis; }
    24   inline const sVect3D* getHalfLength() const { return this->halfLength; }
     23  inline const int getIndex() { return this->treeIndex; }
    2524
    2625  virtual sVect3D* getVertices() const = NULL;
     
    3130  virtual void drawBVBlended(int currentDepth, const int depth) const = NULL;
    3231
     32
    3333 private:
    3434  Vector*             center;                     //!< Center point of box
    35   Vector*             axis;                       //!< Axes of oriented box [x,y,z]
    36   sVect3D*            halfLength;                 //!< Half lengths of the box
    3735
    3836  unsigned int        treeIndex;                  //!< Index number of the BV in the tree
  • orxonox/trunk/src/util/collision_detection/obb.h

    r4521 r4525  
    1919  virtual ~OBB();
    2020
    21 
     21  inline const Vector* getAxis () const { return this->axis; }
     22  inline const sVect3D* getHalfLength() const { return this->halfLength; }
    2223
    2324 private:
    24   OBB*     leftNode;                   //!< left node of the tree
    25   OBB*     rightNode;                  //!< right node of the tree
     25  Vector*          axis;                       //!< Axes of oriented box [x,y,z]
     26  sVect3D*         halfLength;                 //!< Half lengths of the box
     27
     28  OBB*             leftNode;                   //!< left node of the tree
     29  OBB*             rightNode;                  //!< right node of the tree
    2630};
    2731
Note: See TracChangeset for help on using the changeset viewer.