![]() |
Jopnal Engine
alpha 0.4
Simple Component Based 2D/3D Game Engine
|
#include <WeldJoint.hpp>
Public Member Functions | |
| WeldJoint (World &worldRef, RigidBody &bodyA, RigidBody &bodyB, const bool collide) | |
| WeldJoint constructor. More... | |
| float | getDamping () const |
| WeldJoint & | setDamping (const float damping) |
Public Member Functions inherited from jop::Joint | |
| 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 | |
Public Attributes inherited from jop::Joint | |
| World * | m_worldRef |
| Pointer to the world. More... | |
| RigidBody * | m_bodyA |
| Pointer to bodyA. More... | |
| RigidBody * | m_bodyB |
| Pointer to bodyB. More... | |
Protected Member Functions inherited from jop::Joint | |
| 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... | |
Protected Attributes inherited from jop::Joint | |
| 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 35 of file WeldJoint.hpp.
| jop::WeldJoint::WeldJoint | ( | World & | worldRef, |
| RigidBody & | bodyA, | ||
| RigidBody & | bodyB, | ||
| const bool | collide | ||
| ) |
WeldJoint constructor.
Welds two bodies together. Moving one body moves the other in similiar way.
| float jop::WeldJoint::getDamping | ( | ) | const |
| WeldJoint& jop::WeldJoint::setDamping | ( | const float | damping | ) |
| damping | Set new damping value. Please use values between 0.f - 1.f. |
1.8.11