Changeset 2514 for code/branches/presentation/src/orxonox/objects/collisionshapes/PlaneCollisionShape.h
- Timestamp:
- Dec 21, 2008, 2:44:00 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation/src/orxonox/objects/collisionshapes/PlaneCollisionShape.h
r2459 r2514 46 46 47 47 inline void setNormal(const Vector3& normal) 48 { this->normal_ = normal; update Plane(); }48 { this->normal_ = normal; updateShape(); } 49 49 inline const Vector3& getNormal() 50 50 { return normal_;} 51 51 52 52 inline void setOffset(float offset) 53 { this->offset_ = offset; update Plane(); }53 { this->offset_ = offset; updateShape(); } 54 54 inline float getOffset() 55 55 { return this->offset_;} 56 56 57 void updatePlane(); 57 private: 58 btCollisionShape* createNewShape()const; 58 59 59 private:60 60 Vector3 normal_; 61 61 float offset_;
Note: See TracChangeset
for help on using the changeset viewer.