Simbody
Public Member Functions

SimTK::Force::UniformGravity Class Reference

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

#include <Force.h>

Inheritance diagram for SimTK::Force::UniformGravity:

List of all members.

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)

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.


Constructor & Destructor Documentation

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

Member Function Documentation

Vec3 SimTK::Force::UniformGravity::getGravity ( ) const
void SimTK::Force::UniformGravity::setGravity ( const Vec3 g)
Real SimTK::Force::UniformGravity::getZeroHeight ( ) const
void SimTK::Force::UniformGravity::setZeroHeight ( Real  height)
SimTK::Force::UniformGravity::SimTK_INSERT_DERIVED_HANDLE_DECLARATIONS ( UniformGravity  ,
UniformGravityImpl  ,
Force   
)

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