33#ifndef DART_DYNAMICS_CAPSULESHAPE_HPP_
34#define DART_DYNAMICS_CAPSULESHAPE_HPP_
52 const std::string&
getType()
const override;
79 double radius,
double height,
double mass);
CapsuleShape represents a three-dimensional geometric shape consisting of a cylinder with hemispheric...
Definition CapsuleShape.hpp:44
void updateVolume() const override
Updates volume.
Definition CapsuleShape.cpp:147
double mHeight
Height of the cylindrical part.
Definition CapsuleShape.hpp:96
static const std::string & getStaticType()
Get shape type string for this shape.
Definition CapsuleShape.cpp:59
static Eigen::Matrix3d computeInertia(double radius, double height, double mass)
Compute moments of inertia of a capsule.
Definition CapsuleShape.cpp:107
const std::string & getType() const override
Returns a string representing the shape type.
Definition CapsuleShape.cpp:53
double getHeight() const
Get the height of the cylindrical part.
Definition CapsuleShape.cpp:83
double getRadius() const
Get the radius of the capsule.
Definition CapsuleShape.cpp:66
void setRadius(double radius)
Set the radius of the capsule.
Definition CapsuleShape.cpp:72
static double computeVolume(double radius, double height)
Compute volume from given properties.
Definition CapsuleShape.cpp:100
double mRadius
Radius of the capsule.
Definition CapsuleShape.hpp:93
void setHeight(double height)
Set the height of the cylindrical part.
Definition CapsuleShape.cpp:89
void updateBoundingBox() const override
Updates bounding box.
Definition CapsuleShape.cpp:136
Definition BulletCollisionDetector.cpp:60