#include <Link.h>
Public Member Functions | |
| virtual | ~Link (void) |
| Link (RigidBody *body, const ml7::Vector2 &local_point, const ml7::Vector2 &world_point) | |
| Link (RigidBody *body1, RigidBody *body2, const ml7::Vector2 &local_point1, const ml7::Vector2 &local_point2) | |
| RigidBody * | get_body1 () const |
| RigidBody * | get_body2 () const |
| const ml7::Vector2 & | get_point1 () const |
| const ml7::Vector2 & | get_point2 () const |
Public Attributes | |
| RigidBody * | _body1 |
| RigidBody * | _body2 |
| ml7::Vector2 | _point1 |
| ml7::Vector2 | _point2 |
Base class for 2d rigid body links connecting one particle to the world or two particles with each other and generating contacts if the constraints are violated.
| virtual bl7::rigidbodies2::Link::~Link | ( | void | ) | [inline, virtual] |
Destructor.
| bl7::rigidbodies2::Link::Link | ( | RigidBody * | body, | |
| const ml7::Vector2 & | local_point, | |||
| const ml7::Vector2 & | world_point | |||
| ) | [inline] |
Explicit constructor with parameters for one particle connected to the world.
| bl7::rigidbodies2::Link::Link | ( | RigidBody * | body1, | |
| RigidBody * | body2, | |||
| const ml7::Vector2 & | local_point1, | |||
| const ml7::Vector2 & | local_point2 | |||
| ) | [inline] |
Explicit constructor with parameters for two rigid bodies linked together.
| RigidBody* bl7::rigidbodies2::Link::get_body1 | ( | ) | const [inline] |
Returns the first rigid body conntected through the link.
| RigidBody* bl7::rigidbodies2::Link::get_body2 | ( | ) | const [inline] |
Returns the second rigid body (or null) conntected through the link.
| const ml7::Vector2& bl7::rigidbodies2::Link::get_point1 | ( | ) | const [inline] |
The local connection point of the first rigid body.
| const ml7::Vector2& bl7::rigidbodies2::Link::get_point2 | ( | ) | const [inline] |
The local connection point of the second rigid body or the world link point.
The first rigid body connected through the link.
The second rigid body (or null) conntected through the link.
The local connection point of the first rigid body.
The local connection point of the second rigid body or the world link point.
1.7.1