#include <Cable.h>
Public Member Functions | |
| virtual | ~Cable (void) |
| Cable (Particle *particle1, Particle *particle2, const float length, const float restitution) | |
| float | get_length () const |
| float | get_restitution () const |
| void | set_length (const float length) |
| void | set_restitution (const float restitution) |
Public Attributes | |
| float | _max_length |
| float | _restitution |
A contact generator that generates a contact if the cable connecting two particles is overextended.
| virtual bl7::particles2::Cable::~Cable | ( | void | ) | [inline, virtual] |
Destructor.
| bl7::particles2::Cable::Cable | ( | Particle * | particle1, | |
| Particle * | particle2, | |||
| const float | length, | |||
| const float | restitution | |||
| ) | [inline] |
Explicit constructor with parameters for the particles linked together as well as the length and the restitution (bounciness) of the cable.
| float bl7::particles2::Cable::get_length | ( | ) | const [inline] |
Returns the maximum length of the cable.
| float bl7::particles2::Cable::get_restitution | ( | ) | const [inline] |
Returns the restitution (bounciness) of the cable.
| void bl7::particles2::Cable::set_length | ( | const float | length | ) | [inline] |
Sets the maximum length of the cable.
| void bl7::particles2::Cable::set_restitution | ( | const float | restitution | ) | [inline] |
Sets the restitution (bounciness) of the cable.
The maximum length of the cable.
The restitution (bounciness) of the cable.
1.7.1