|
Engine
|
Computes graviational force of attraction between 2 entities. More...
#include <gravity_force.h>
Public Member Functions | |
| GravityForceGenerator () | |
| void | AccumulateForce (const std::shared_ptr< PhysicsEntity > e1, const std::shared_ptr< PhysicsEntity > e2, Vector3Gf &F) const |
| void | AccumulatedFdx (const std::shared_ptr< PhysicsEntity > e1, const std::shared_ptr< PhysicsEntity > e2, Eigen::Matrix< GLfloat, 3, 3 > &dF) const |
Computes graviational force of attraction between 2 entities.
| GravityForceGenerator::GravityForceGenerator | ( | ) |
Builds a GravityForceGenerator
| void GravityForceGenerator::AccumulatedFdx | ( | const std::shared_ptr< PhysicsEntity > | e1, |
| const std::shared_ptr< PhysicsEntity > | e2, | ||
| Eigen::Matrix< GLfloat, 3, 3 > & | dF | ||
| ) | const |
Adds the position jacobian
| e1 | Entity whom the force is acting on |
| e2 | Entity which is gravitationally interacting with e1 |
| dF | Matrix that will accumulate the derivative of force with respect to position |
| void GravityForceGenerator::AccumulateForce | ( | const std::shared_ptr< PhysicsEntity > | e1, |
| const std::shared_ptr< PhysicsEntity > | e2, | ||
| Vector3Gf & | F | ||
| ) | const |
Adds a constant force determined by the mass of the provided entity and the stored acceleration vector
| e1 | Entity whom the force is acting on |
| e2 | Entity which is gravitationally interacting with e1 |
| F | Force vector that will accumulate the constant force represented by this instance |