|
Engine
|
A constant force throughout all space. More...
#include <constant_force.h>
Public Member Functions | |
| ConstantForceGenerator () | |
| ConstantForceGenerator (Vector3Gf accel) | |
| ~ConstantForceGenerator () | |
| void | AccumulateForce (std::shared_ptr< PhysicsEntity > entity, Vector3Gf &F) const |
A constant force throughout all space.
| ConstantForceGenerator::ConstantForceGenerator | ( | ) |
Builds a ConstantForceGenerator with a zero acceleration at all points in space.
| ConstantForceGenerator::ConstantForceGenerator | ( | Vector3Gf | accel | ) |
Builds a ConstantForceGenerator with a given acceleration at all points in space
| accel | acceleration vector for the force |
| ConstantForceGenerator::~ConstantForceGenerator | ( | ) |
Deconstructs a ConstantForceGenerator
| void ConstantForceGenerator::AccumulateForce | ( | std::shared_ptr< PhysicsEntity > | entity, |
| Vector3Gf & | F | ||
| ) | const |
Adds a constant force determined by the mass of the provided entity and the stored acceleration vector
| entity | Entity whom the force will be applied against |
| F | Force vector that will accumulate the constant force represented by this instance |