Simbody
|
A uniform gravitational force applied to every body in the system. More...
#include <Force.h>
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) |
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.
SimTK::Force::UniformGravity::UniformGravity | ( | GeneralForceSubsystem & | forces, |
const SimbodyMatterSubsystem & | matter, | ||
const Vec3 & | g, | ||
Real | zeroHeight = 0 |
||
) |
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 | |||
) |