Changeset 2403 for code/branches/physics/src/orxonox/objects/worldentities/collisionshapes/PlaneCollisionShape.h
- Timestamp:
- Dec 10, 2008, 11:33:58 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/physics/src/orxonox/objects/worldentities/collisionshapes/PlaneCollisionShape.h
- Property svn:eol-style set to native
r2374 r2403 46 46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 47 47 48 inline void setNormal(const Vector3& normal) 49 { this->normal_ = normal; updatePlane(); } 50 inline const Vector3& getNormal() 51 { return normal_;} 52 53 inline void setOffset(float offset) 54 { this->offset_ = offset; updatePlane(); } 48 55 inline float getOffset() 49 { return this->planeShape_->getPlaneConstant();} 50 void setOffset(float offset); 56 { return this->offset_;} 51 57 52 inline btVector3 getNormal() 53 { return this->planeShape_->getPlaneNormal();} 54 void setNormal(const Vector3& normal); 55 56 inline void planeNormalChanged() 57 { this->setNormal(this->planeNormal_); } 58 59 inline void planeOffsetChanged() 60 { this->setOffset(this->planeOffset_); } 58 void updatePlane(); 61 59 62 60 private: 63 btStaticPlaneShape* planeShape_; 64 Vector3 planeNormal_; 65 float planeOffset_; 61 Vector3 normal_; 62 float offset_; 66 63 }; 67 64 }
Note: See TracChangeset
for help on using the changeset viewer.