#include <Joint2D.hpp>
Definition at line 39 of file Joint2D.hpp.
Joint2D constructor.
- Parameters
-
| worldRef | Reference to the current world. Obtained and handled by the engine. |
| bodyA | RigidBody2D where to attach this joint. Received automatically from the calling function. |
| bodyB | RigidBody2D in which to attach the second end of the joint. Given by user as an argument. |
| collide | Boolean whether the linked bodies should collide with each other. |
| virtual jop::Joint2D::~Joint2D |
( |
| ) |
|
|
pure virtual |
| static b2Body* jop::Joint2D::getBody |
( |
RigidBody2D & |
body | ) |
|
|
staticprotected |
Return engine internal pointer to body.
- Parameters
-
- Returns
- Returns pointer to Box2D body.
| unsigned int jop::Joint2D::getID |
( |
| ) |
const |
Get joint ID.
- Returns
- Returns ID of the joint.
| Joint2D& jop::Joint2D::setID |
( |
const unsigned int |
id | ) |
|
Set new ID for the joint.
- Parameters
-
- Returns
- Returns reference to self.
| bool jop::Joint2D::m_collide |
|
protected |
Should the linked bodies collide.
Definition at line 85 of file Joint2D.hpp.
| unsigned int jop::Joint2D::m_ID |
|
protected |
| b2Joint* jop::Joint2D::m_joint |
|
protected |
Pointer to Box2D joint.
Definition at line 86 of file Joint2D.hpp.
The documentation for this class was generated from the following file: