Simbody
|
This kind of body can only represent an inertialess point mass, with mass center at (0,0,0) in the local frame. More...
#include <Body.h>
Public Member Functions | |
Particle () | |
Particle (const Real &mass) | |
Particle & | addDecoration (const Transform &X_BD, const DecorativeGeometry &g) |
Add a piece of decorative geometry fixed at some location on this Body. | |
Particle & | setDefaultRigidBodyMassProperties (const MassProperties &m) |
Every type of Body should provide an initial set of rigid body mass properties defined at Topology stage (i.e., in the System rather than the State). | |
SimTK_PIMPL_DOWNCAST (Particle, Body) |
This kind of body can only represent an inertialess point mass, with mass center at (0,0,0) in the local frame.
You can change mass later (even to make it massless) but you can't move the mass center or add any inertia.
SimTK::Body::Particle::Particle | ( | const Real & | mass | ) | [explicit] |
Particle& SimTK::Body::Particle::addDecoration | ( | const Transform & | X_BD, |
const DecorativeGeometry & | |||
) | [inline] |
Add a piece of decorative geometry fixed at some location on this Body.
This can be used for visualization of the Body's motion. Returns a reference to the Body so these can be chained like assignment operators.
Reimplemented from SimTK::Body.
Particle& SimTK::Body::Particle::setDefaultRigidBodyMassProperties | ( | const MassProperties & | ) | [inline] |
Every type of Body should provide an initial set of rigid body mass properties defined at Topology stage (i.e., in the System rather than the State).
This is thus a Topology-stage change which will require a new realizeTopology() before use.
Reimplemented from SimTK::Body.