This structure is used to gather the information needed to create a hinge joint.
More...
#include <include/reactphysics3d/constraint/HingeJoint.h>
|
| HingeJointInfo (RigidBody *rigidBody1, RigidBody *rigidBody2, const Vector3 &initAnchorPointWorldSpace, const Vector3 &initRotationAxisWorld) |
| Constructor without limits and without motor with world-space anchor. More...
|
|
| HingeJointInfo (RigidBody *rigidBody1, RigidBody *rigidBody2, const Vector3 &initAnchorPointWorldSpace, const Vector3 &initRotationAxisWorld, decimal initMinAngleLimit, decimal initMaxAngleLimit) |
| Constructor with limits but without motor with world-space anchor. More...
|
|
| HingeJointInfo (RigidBody *rigidBody1, RigidBody *rigidBody2, const Vector3 &initAnchorPointWorldSpace, const Vector3 &initRotationAxisWorld, decimal initMinAngleLimit, decimal initMaxAngleLimit, decimal initMotorSpeed, decimal initMaxMotorTorque) |
| Constructor with limits and motor with world-space anchor. More...
|
|
| HingeJointInfo (RigidBody *rigidBody1, RigidBody *rigidBody2, const Vector3 &anchorPointBody1Local, const Vector3 &anchorPointBody2Local, const Vector3 &rotationBody1AxisLocal, const Vector3 &rotationBody2AxisLocal) |
| Constructor without limits and without motor with local-space anchors. More...
|
|
| HingeJointInfo (RigidBody *rigidBody1, RigidBody *rigidBody2, const Vector3 &anchorPointBody1Local, const Vector3 &anchorPointBody2Local, const Vector3 &rotationBody1AxisLocal, const Vector3 &rotationBody2AxisLocal, decimal initMinAngleLimit, decimal initMaxAngleLimit) |
| Constructor with limits but without motor with local-space anchors. More...
|
|
| HingeJointInfo (RigidBody *rigidBody1, RigidBody *rigidBody2, const Vector3 &anchorPointBody1Local, const Vector3 &anchorPointBody2Local, const Vector3 &rotationBody1AxisLocal, const Vector3 &rotationBody2AxisLocal, decimal initMinAngleLimit, decimal initMaxAngleLimit, decimal initMotorSpeed, decimal initMaxMotorTorque) |
| Constructor with limits and motor with local-space anchors. More...
|
|
| JointInfo (JointType constraintType) |
| Constructor.
|
|
| JointInfo (RigidBody *rigidBody1, RigidBody *rigidBody2, JointType constraintType) |
| Constructor.
|
|
virtual | ~JointInfo ()=default |
| Destructor.
|
|
This structure is used to gather the information needed to create a hinge joint.
This structure will be used to create the actual hinge joint.
◆ HingeJointInfo() [1/6]
reactphysics3d::HingeJointInfo::HingeJointInfo |
( |
RigidBody * |
rigidBody1, |
|
|
RigidBody * |
rigidBody2, |
|
|
const Vector3 & |
initAnchorPointWorldSpace, |
|
|
const Vector3 & |
initRotationAxisWorld |
|
) |
| |
|
inline |
Constructor without limits and without motor with world-space anchor.
- Parameters
-
rigidBody1 | The first body of the joint |
rigidBody2 | The second body of the joint |
initAnchorPointWorldSpace | The initial anchor point in world-space coordinates |
initRotationAxisWorld | The initial rotation axis in world-space coordinates |
◆ HingeJointInfo() [2/6]
reactphysics3d::HingeJointInfo::HingeJointInfo |
( |
RigidBody * |
rigidBody1, |
|
|
RigidBody * |
rigidBody2, |
|
|
const Vector3 & |
initAnchorPointWorldSpace, |
|
|
const Vector3 & |
initRotationAxisWorld, |
|
|
decimal |
initMinAngleLimit, |
|
|
decimal |
initMaxAngleLimit |
|
) |
| |
|
inline |
Constructor with limits but without motor with world-space anchor.
- Parameters
-
rigidBody1 | The first body of the joint |
rigidBody2 | The second body of the joint |
initAnchorPointWorldSpace | The initial anchor point in world-space coordinates |
initRotationAxisWorld | The intial rotation axis in world-space coordinates |
initMinAngleLimit | The initial minimum limit angle (in radian) |
initMaxAngleLimit | The initial maximum limit angle (in radian) |
◆ HingeJointInfo() [3/6]
reactphysics3d::HingeJointInfo::HingeJointInfo |
( |
RigidBody * |
rigidBody1, |
|
|
RigidBody * |
rigidBody2, |
|
|
const Vector3 & |
initAnchorPointWorldSpace, |
|
|
const Vector3 & |
initRotationAxisWorld, |
|
|
decimal |
initMinAngleLimit, |
|
|
decimal |
initMaxAngleLimit, |
|
|
decimal |
initMotorSpeed, |
|
|
decimal |
initMaxMotorTorque |
|
) |
| |
|
inline |
Constructor with limits and motor with world-space anchor.
- Parameters
-
rigidBody1 | The first body of the joint |
rigidBody2 | The second body of the joint |
initAnchorPointWorldSpace | The initial anchor point in world-space |
initRotationAxisWorld | The initial rotation axis in world-space |
initMinAngleLimit | The initial minimum limit angle (in radian) |
initMaxAngleLimit | The initial maximum limit angle (in radian) |
initMotorSpeed | The initial motor speed of the joint (in radian per second) |
initMaxMotorTorque | The initial maximum motor torque (in Newtons) |
◆ HingeJointInfo() [4/6]
reactphysics3d::HingeJointInfo::HingeJointInfo |
( |
RigidBody * |
rigidBody1, |
|
|
RigidBody * |
rigidBody2, |
|
|
const Vector3 & |
anchorPointBody1Local, |
|
|
const Vector3 & |
anchorPointBody2Local, |
|
|
const Vector3 & |
rotationBody1AxisLocal, |
|
|
const Vector3 & |
rotationBody2AxisLocal |
|
) |
| |
|
inline |
Constructor without limits and without motor with local-space anchors.
- Parameters
-
rigidBody1 | The first body of the joint |
rigidBody2 | The second body of the joint |
anchorPointBody1Local | The initial anchor point on body 1 in local-space |
anchorPointBody2Local | The initial anchor point on body 2 in local-space |
rotationBody1AxisLocal | The initial rotation axis on body 1 in local-space |
rotationBody2AxisLocal | The initial rotation axis on body 2 in local-space |
◆ HingeJointInfo() [5/6]
reactphysics3d::HingeJointInfo::HingeJointInfo |
( |
RigidBody * |
rigidBody1, |
|
|
RigidBody * |
rigidBody2, |
|
|
const Vector3 & |
anchorPointBody1Local, |
|
|
const Vector3 & |
anchorPointBody2Local, |
|
|
const Vector3 & |
rotationBody1AxisLocal, |
|
|
const Vector3 & |
rotationBody2AxisLocal, |
|
|
decimal |
initMinAngleLimit, |
|
|
decimal |
initMaxAngleLimit |
|
) |
| |
|
inline |
Constructor with limits but without motor with local-space anchors.
- Parameters
-
rigidBody1 | The first body of the joint |
rigidBody2 | The second body of the joint |
anchorPointBody1Local | The initial anchor point on body 1 in local-space |
anchorPointBody2Local | The initial anchor point on body 2 in local-space |
rotationBody1AxisLocal | The initial rotation axis on body 1 in local-space |
rotationBody2AxisLocal | The initial rotation axis on body 2 in local-space |
initMinAngleLimit | The initial minimum limit angle (in radian) |
initMaxAngleLimit | The initial maximum limit angle (in radian) |
◆ HingeJointInfo() [6/6]
reactphysics3d::HingeJointInfo::HingeJointInfo |
( |
RigidBody * |
rigidBody1, |
|
|
RigidBody * |
rigidBody2, |
|
|
const Vector3 & |
anchorPointBody1Local, |
|
|
const Vector3 & |
anchorPointBody2Local, |
|
|
const Vector3 & |
rotationBody1AxisLocal, |
|
|
const Vector3 & |
rotationBody2AxisLocal, |
|
|
decimal |
initMinAngleLimit, |
|
|
decimal |
initMaxAngleLimit, |
|
|
decimal |
initMotorSpeed, |
|
|
decimal |
initMaxMotorTorque |
|
) |
| |
|
inline |
Constructor with limits and motor with local-space anchors.
- Parameters
-
rigidBody1 | The first body of the joint |
rigidBody2 | The second body of the joint |
anchorPointBody1Local | The initial anchor point on body 1 in local-space |
anchorPointBody2Local | The initial anchor point on body 2 in local-space |
rotationBody1AxisLocal | The initial rotation axis on body 1 in local-space |
rotationBody2AxisLocal | The initial rotation axis on body 2 in local-space |
initMinAngleLimit | The initial minimum limit angle (in radian) |
initMaxAngleLimit | The initial maximum limit angle (in radian) |
initMotorSpeed | The initial motor speed of the joint (in radian per second) |
initMaxMotorTorque | The initial maximum motor torque (in Newtons) |
◆ maxAngleLimit
decimal reactphysics3d::HingeJointInfo::maxAngleLimit |
Maximum allowed rotation angle (in radian) if limits are enabled.
The angle must be in the range [0, 2*pi]
◆ minAngleLimit
decimal reactphysics3d::HingeJointInfo::minAngleLimit |
Minimum allowed rotation angle (in radian) if limits are enabled.
The angle must be in the range [-2*pi, 0]
The documentation for this struct was generated from the following file:
- include/reactphysics3d/constraint/HingeJoint.h