Simbody
Public Member Functions

SimTK::Body::Particle Class Reference

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>

Inheritance diagram for SimTK::Body::Particle:

List of all members.

Public Member Functions

 Particle ()
 Particle (const Real &mass)
ParticleaddDecoration (const Transform &X_BD, const DecorativeGeometry &g)
 Add a piece of decorative geometry fixed at some location on this Body.
ParticlesetDefaultRigidBodyMassProperties (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)

Detailed Description

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.


Constructor & Destructor Documentation

SimTK::Body::Particle::Particle ( const Real &  mass) [explicit]

Member Function Documentation

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.

SimTK::Body::Particle::SimTK_PIMPL_DOWNCAST ( Particle  ,
Body   
)

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines