#include <Defines.h>
Public Member Functions | |
Force () | |
Public Attributes | |
ForceType | type |
real | duration |
bool | singleStep |
Vec3r | vec |
Point3r | pos |
Definition at line 97 of file Defines.h.
|
Definition at line 99 of file Defines.h. References duration, opal::LOCAL_FORCE, singleStep, and type. |
|
Specifies how long to apply to force. This makes it easy to apply forces independent of the step size. This will be ignored if "singleStep" is true. Definition at line 114 of file Defines.h. Referenced by opal::Joint::addForce(), opal::Joint::addTorque(), and Force(). |
|
Only used when the force is applied at an offset (i.e. not the center of mass). Definition at line 127 of file Defines.h. Referenced by opal::ODESolid::applyForce(), and opal::SpringMotor::internal_update(). |
|
This is mainly used internally by OPAL. It specifies that the force will be applied across a single time step. If this parameter is true, "duration" will be ignored. Definition at line 119 of file Defines.h. Referenced by opal::Joint::addForce(), opal::Joint::addTorque(), Force(), opal::ThrusterMotor::init(), opal::SpringMotor::internal_update(), opal::AttractorMotor::internal_update(), opal::ThrusterMotor::setForce(), and opal::ThrusterMotorData::ThrusterMotorData(). |
|
Specifies the type of force.
Definition at line 109 of file Defines.h. Referenced by opal::Joint::addForce(), opal::Joint::addTorque(), opal::ODESolid::applyForce(), Force(), opal::SpringMotor::internal_update(), and opal::AttractorMotor::internal_update(). |
|
The force direction or torque axis. This parameter encodes the magnitude of the force or torque. Definition at line 123 of file Defines.h. Referenced by opal::Solid::addForce(), opal::Joint::addForce(), opal::Joint::addTorque(), opal::ODESolid::applyForce(), opal::SpringMotor::internal_update(), and opal::AttractorMotor::internal_update(). |