Computes a simple linear drag force on the provided entity.
More...
#include <linear_drag_force.h>
Computes a simple linear drag force on the provided entity.
| LinearDragForceGenerator::LinearDragForceGenerator |
( |
| ) |
|
| LinearDragForceGenerator::LinearDragForceGenerator |
( |
GLfloat |
beta | ) |
|
| void LinearDragForceGenerator::AccumulatedFdv |
( |
const std::shared_ptr< PhysicsEntity > |
entity, |
|
|
Eigen::Matrix< GLfloat, 3, 3 > & |
dF |
|
) |
| const |
Adds the velocity jacobian
- Parameters
-
| entity | Entity whom the force is acting on |
| dF | Matrix that will accumulate the derivative of force with respect to velocity |
| void LinearDragForceGenerator::AccumulateForce |
( |
std::shared_ptr< PhysicsEntity > |
entity, |
|
|
Vector3Gf & |
F |
|
) |
| const |
Adds a drag force whose magnitude is proportional to the drag coeffient
- Parameters
-
| entity | Entity whom the force will be applied against |
| F | Force vector that will accumulate the constant force represented by this instance |
| GLfloat LinearDragForceGenerator::GetDragCoeff |
( |
| ) |
|
- Returns
- the drag coefficent
| void LinearDragForceGenerator::SetDragCoeff |
( |
GLfloat |
beta | ) |
|
Sets the drag coefficent
- Parameters
-
The documentation for this class was generated from the following files: