Changeset 2403 for code/branches/physics/src/orxonox/objects/worldentities/collisionshapes/SphereCollisionShape.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/SphereCollisionShape.h
r2374 r2403 45 45 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 46 46 47 void setRadius(float radius); 47 inline void setRadius(float radius) 48 { this->radius_ = radius; updateSphere(); } 48 49 inline float getRadius() const 49 50 { return this->radius_;} 50 51 51 inline void radiusChanged() 52 { this->setRadius(this->radius_); } 52 void updateSphere(); 53 53 54 54 private: 55 btSphereShape* sphereShape_; 56 float radius_; 55 float radius_; 57 56 }; 58 57 }
Note: See TracChangeset
for help on using the changeset viewer.