|
NcEngine
|
Constraint settings to attach two bodies with a hinge, limiting relative motion to rotation about a single axis. More...
#include <Constraints.h>
Public Attributes | |
| Vector3 | ownerPosition = Vector3::Zero() |
| local attach position | |
| Vector3 | ownerHingeAxis = Vector3::Right() |
| local axis of rotation | |
| Vector3 | ownerNormalAxis = Vector3::Up() |
| local reference axis perpendicular to ownerHingeAxis | |
| Vector3 | targetPosition = Vector3::Zero() |
| local attach position | |
| Vector3 | targetHingeAxis = ownerHingeAxis |
| local axis of rotation | |
| Vector3 | targetNormalAxis = ownerNormalAxis |
| local reference axis perpendicular to targetHingeAxis | |
| float | minLimit = -std::numbers::pi_v<float> |
| min rotation about hinge axis [-pi, 0] ( |minLimit| + maxLimit > 0 ) | |
| float | maxLimit = std::numbers::pi_v<float> |
| max rotation about hinge axis [0, pi] | |
| float | maxFrictionTorque = 0.0f |
| max torque to apply as friction (Nm) [0, inf] | |
| SpringSettings | springSettings = SpringSettings{} |
| settings to soften the limits | |
Static Public Attributes | |
| static constexpr auto | type = ConstraintType::HingeConstraint |
Constraint settings to attach two bodies with a hinge, limiting relative motion to rotation about a single axis.