Base class for all collision geometries in the physics engine.
Definition shape.hpp:28
virtual Vector3 CalculateLocalInertia(double mass) const =0
Computes the diagonal of the local inertia tensor for this shape given a mass.
virtual double CalculateVolume() const =0
Calculates the volume of the specific shape.
virtual ShapeType GetType() const =0
Gets the exact type of this shape.
ShapeType
Enum identifying the specific types of collision shapes available.
Definition shape.hpp:14
@ MESH
Definition shape.hpp:18
@ UNKNOWN
Definition shape.hpp:19
@ SPHERE
Definition shape.hpp:16
@ CYLINDER
Definition shape.hpp:17
@ BOX
Definition shape.hpp:15
3D vector utility used throughout JSim physics.
Definition vector.hpp:22