#include <Drag.h>
Public Member Functions | |
| Drag (void) | |
| virtual | ~Drag (void) |
| Drag (const float k1, const float k2) | |
| float | get_k1 () const |
| float | get_k2 () const |
| void | set_k1 (const float k1) |
| void | set_k2 (const float k2) |
A force generator that applies drag forces to 2d rigid bodies. One instance may be used for multiple particles.
| bl7::rigidbodies2::Drag::Drag | ( | void | ) | [inline] |
Default constructor.
| virtual bl7::rigidbodies2::Drag::~Drag | ( | void | ) | [inline, virtual] |
Destructor.
| bl7::rigidbodies2::Drag::Drag | ( | const float | k1, | |
| const float | k2 | |||
| ) | [inline] |
Explicit constructor with parameters specifying the velocity drag coefficient and the velocity squared drag coefficient.
| float bl7::rigidbodies2::Drag::get_k1 | ( | ) | const [inline] |
Returns the velocity drag coefficient.
| float bl7::rigidbodies2::Drag::get_k2 | ( | ) | const [inline] |
Returns the velocity squared drag coefficient.
| void bl7::rigidbodies2::Drag::set_k1 | ( | const float | k1 | ) | [inline] |
Sets the velocity drag coefficient.
| void bl7::rigidbodies2::Drag::set_k2 | ( | const float | k2 | ) | [inline] |
Sets the velocity squared drag coefficient.
1.7.1