![]() |
Jopnal Engine
alpha 0.4
Simple Component Based 2D/3D Game Engine
|
#include <RopeJoint.hpp>
Public Member Functions | |
RopeJoint (World &worldRef, RigidBody &bodyA, RigidBody &bodyB, const bool collide) | |
RopeJoint constructor. More... | |
RopeJoint & | lockAxis (const bool lock, const unsigned int axis) |
Lock/Unlock specific rotation axis. More... | |
![]() | |
Joint (World &worldRef, RigidBody &bodyA, RigidBody &bodyB, const bool collide) | |
Joint constructor. More... | |
virtual | ~Joint ()=0 |
unsigned int | getID () const |
Get joint ID. More... | |
Joint & | setID (const unsigned int id) |
Set new ID for the joint. More... | |
Additional Inherited Members | |
![]() | |
World * | m_worldRef |
Pointer to the world. More... | |
RigidBody * | m_bodyA |
Pointer to bodyA. More... | |
RigidBody * | m_bodyB |
Pointer to bodyB. More... | |
![]() | |
btRigidBody * | getBody (RigidBody &body) const |
Return engine internal pointer to body. More... | |
btDiscreteDynamicsWorld & | getWorld (World &world) const |
Return engine internal pointer to world. More... | |
glm::vec3 | defaultCenter (const glm::vec3 &jPos) const |
glm::vec3 | computeCenter () const |
Calculates the point in the middle between this' m_bodies. More... | |
![]() | |
bool | m_collide |
std::unique_ptr< btTypedConstraint > | m_joint |
< Should the linked bodies collide. More... | |
unsigned int | m_ID |
Joint ID. More... | |
Definition at line 36 of file RopeJoint.hpp.
RopeJoint& jop::RopeJoint::lockAxis | ( | const bool | lock, |
const unsigned int | axis | ||
) |
Lock/Unlock specific rotation axis.
lock | True to lock. False to free. |
axis | Rotation axis to target. 0 = X, 1 = Y, 2 = Z. |