Force::UniformGravity Class Reference

#include <Force.h>

Inheritance diagram for Force::UniformGravity:

Force PIMPLHandle

List of all members.


Detailed Description

A uniform gravitational force applied to every body in the system.

The force is specified by a vector in the Ground frame. You can optionally specify a height at which the gravitational potential energy is zero.

Public Member Functions

 UniformGravity (GeneralForceSubsystem &forces, const SimbodyMatterSubsystem &matter, const Vec3 &g, Real zeroHeight=0)
Vec3 getGravity () const
void setGravity (const Vec3 &g)
Real getZeroHeight () const
void setZeroHeight (Real height)
 SimTK_INSERT_DERIVED_HANDLE_DECLARATIONS (UniformGravity, UniformGravityImpl, Force)


Constructor & Destructor Documentation

UniformGravity ( GeneralForceSubsystem forces,
const SimbodyMatterSubsystem matter,
const Vec3 g,
Real  zeroHeight = 0 
)


Member Function Documentation

Vec3 getGravity (  )  const

void setGravity ( const Vec3 g  ) 

Real getZeroHeight (  )  const

void setZeroHeight ( Real  height  ) 

SimTK_INSERT_DERIVED_HANDLE_DECLARATIONS ( UniformGravity  ,
UniformGravityImpl  ,
Force   
)


The documentation for this class was generated from the following file:

Generated on Fri Sep 26 07:44:32 2008 for SimTKcore by  doxygen 1.5.6