Changeset 2374 for code/branches/physics/src/orxonox/objects/worldentities/collisionshapes/PlaneCollisionShape.h
- Timestamp:
- Dec 10, 2008, 1:38:17 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/physics/src/orxonox/objects/worldentities/collisionshapes/PlaneCollisionShape.h
r2323 r2374 21 21 * 22 22 * Author: 23 * Reto Grieder23 * Martin Stypinski 24 24 * Co-authors: 25 25 * ... … … 33 33 34 34 #include "BulletCollision/CollisionShapes/btStaticPlaneShape.h" 35 36 35 #include "CollisionShape.h" 37 36 … … 44 43 virtual ~PlaneCollisionShape(); 45 44 45 void registerVariables(); 46 46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 47 47 48 49 50 48 inline float getOffset() 51 49 { return this->planeShape_->getPlaneConstant();} 50 void setOffset(float offset); 52 51 53 52 inline btVector3 getNormal() 54 53 { return this->planeShape_->getPlaneNormal();} 55 void setOffset(float offset);56 54 void setNormal(const Vector3& normal); 57 55 58 private:59 virtual btVector3 getTotalScaling();56 inline void planeNormalChanged() 57 { this->setNormal(this->planeNormal_); } 60 58 59 inline void planeOffsetChanged() 60 { this->setOffset(this->planeOffset_); } 61 62 private: 61 63 btStaticPlaneShape* planeShape_; 64 Vector3 planeNormal_; 65 float planeOffset_; 62 66 }; 63 67 }
Note: See TracChangeset
for help on using the changeset viewer.