|
JSim 2026.06.01-p(1)
|
Represents a rectangular prism collision shape. More...
#include <box.hpp>
Public Member Functions | |
| Box (const Vector3 &halfExtents) | |
| Constructs a new Box centered at the local origin. | |
| virtual | ~Box ()=default |
| ShapeType | GetType () const override |
| Gets the exact type of this shape. | |
| double | CalculateVolume () const override |
| Calculates the volume of the specific shape. | |
| Vector3 | CalculateLocalInertia (double mass) const override |
| Computes the diagonal of the local inertia tensor for this shape given a mass. | |
| const Vector3 & | GetHalfExtents () const |
| Gets the half extents of the box. | |
| Public Member Functions inherited from frcsim::Shape | |
| virtual | ~Shape ()=default |
Represents a rectangular prism collision shape.
|
inlineexplicit |
|
virtualdefault |
|
inlineoverridevirtual |
Computes the diagonal of the local inertia tensor for this shape given a mass.
| mass | The mass of the rigid body attached to this shape in kg. |
Implements frcsim::Shape.
|
inlineoverridevirtual |
Calculates the volume of the specific shape.
Implements frcsim::Shape.
|
inline |
Gets the half extents of the box.
|
inlineoverridevirtual |
Gets the exact type of this shape.
Implements frcsim::Shape.