#include <RotationJoint.hpp>
|
| RotationJoint (World &worldRef, RigidBody &bodyA, RigidBody &bodyB, const bool collide, const glm::vec3 &anchor=glm::vec3(0.f, 0.f, FLT_MAX)) |
| RotationJoint constructor. More...
|
|
glm::vec3 | getAngLimits (const bool lower) const |
|
RotationJoint & | setAngLimits (const bool lower, const glm::vec3 &limits) |
|
| 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...
|
|
Definition at line 35 of file RotationJoint.hpp.
jop::RotationJoint::RotationJoint |
( |
World & |
worldRef, |
|
|
RigidBody & |
bodyA, |
|
|
RigidBody & |
bodyB, |
|
|
const bool |
collide, |
|
|
const glm::vec3 & |
anchor = glm::vec3(0.f, 0.f, FLT_MAX) |
|
) |
| |
RotationJoint constructor.
- Parameters
-
anchor | Position of the joint in world coordinates. Default in the middle between the bodies. |
glm::vec3 jop::RotationJoint::getAngLimits |
( |
const bool |
lower | ) |
const |
- Parameters
-
lower | True = return lower limits. False = return upper limits. |
- Returns
- Returns desired limits of the joint.
RotationJoint& jop::RotationJoint::setAngLimits |
( |
const bool |
lower, |
|
|
const glm::vec3 & |
limits |
|
) |
| |
Set new rotational limits for the joint in radians.
- Parameters
-
lower | True = set lower limits. False = set upper limits. |
limits | New limits to set to the joint. |
- Returns
- Returns reference to self.
The documentation for this class was generated from the following file: