33 #ifndef DART_DYNAMICS_SPHERESHAPE_HPP_
34 #define DART_DYNAMICS_SPHERESHAPE_HPP_
51 const std::string&
getType()
const override;
Definition: SphereShape.hpp:42
static double computeVolume(double radius)
Compute volume from given properties.
Definition: SphereShape.cpp:85
const std::string & getType() const override
Returns a string representing the shape type.
Definition: SphereShape.cpp:53
static Eigen::Matrix3d computeInertia(double radius, double mass)
Compute moments of inertia of a Sphere.
Definition: SphereShape.cpp:91
SphereShape(double radius)
Constructor.
Definition: SphereShape.cpp:41
void updateBoundingBox() const override
Updates bounding box.
Definition: SphereShape.cpp:109
void updateVolume() const override
Updates volume.
Definition: SphereShape.cpp:117
double mRadius
Radius of this Sphere.
Definition: SphereShape.hpp:80
virtual ~SphereShape()
Destructor.
Definition: SphereShape.cpp:47
void setRadius(double radius)
Set radius of this box.
Definition: SphereShape.cpp:66
double getRadius() const
Get radius of this box.
Definition: SphereShape.cpp:79
static const std::string & getStaticType()
Returns shape type for this class.
Definition: SphereShape.cpp:59
Definition: BulletCollisionDetector.cpp:65