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:86
const std::string & getType() const override
Returns a string representing the shape type.
Definition: SphereShape.cpp:54
static Eigen::Matrix3d computeInertia(double radius, double mass)
Compute moments of inertia of a Sphere.
Definition: SphereShape.cpp:92
SphereShape(double radius)
Constructor.
Definition: SphereShape.cpp:41
void updateBoundingBox() const override
Updates bounding box.
Definition: SphereShape.cpp:110
void updateVolume() const override
Updates volume.
Definition: SphereShape.cpp:118
double mRadius
Radius of this Sphere.
Definition: SphereShape.hpp:80
virtual ~SphereShape()
Destructor.
Definition: SphereShape.cpp:48
void setRadius(double radius)
Set radius of this box.
Definition: SphereShape.cpp:67
double getRadius() const
Get radius of this box.
Definition: SphereShape.cpp:80
static const std::string & getStaticType()
Returns shape type for this class.
Definition: SphereShape.cpp:60
Definition: BulletCollisionDetector.cpp:63