33#ifndef DART_DYNAMICS_BOXSHAPE_HPP_
34#define DART_DYNAMICS_BOXSHAPE_HPP_
45 explicit BoxShape(
const Eigen::Vector3d& _size);
51 const std::string&
getType()
const override;
57 void setSize(
const Eigen::Vector3d& _size);
60 const Eigen::Vector3d&
getSize()
const;
67 const Eigen::Vector3d& size,
double mass);
Definition BoxShape.hpp:42
void setSize(const Eigen::Vector3d &_size)
Set size of this box.
Definition BoxShape.cpp:87
Eigen::Vector3d mSize
Side lengths of the box.
Definition BoxShape.hpp:81
static const std::string & getStaticType()
Returns shape type for this class.
Definition BoxShape.cpp:61
static double computeVolume(const Eigen::Vector3d &size)
Compute volume from given properties.
Definition BoxShape.cpp:68
void updateVolume() const override
Updates volume.
Definition BoxShape.cpp:120
void updateBoundingBox() const override
Updates bounding box.
Definition BoxShape.cpp:112
const std::string & getType() const override
Returns a string representing the shape type.
Definition BoxShape.cpp:55
static Eigen::Matrix3d computeInertia(const Eigen::Vector3d &size, double mass)
Compute moments of inertia of a box.
Definition BoxShape.cpp:74
const Eigen::Vector3d & getSize() const
Get size of this box.
Definition BoxShape.cpp:100
virtual ~BoxShape()
Destructor.
Definition BoxShape.cpp:49
Definition BulletCollisionDetector.cpp:60