#include <Force.h>
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) |
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 | ||||
) |