|
NcEngine
|
Constraint settings to attach two bodies with a shoulder-like joint, limiting relative motion to rotation within a cone. More...
#include <Constraints.h>
Public Attributes | |
| Vector3 | ownerPosition = Vector3::Zero() |
| local attach position | |
| Vector3 | ownerTwistAxis = Vector3::Right() |
| local twist axis (cone axis) | |
| Vector3 | targetPosition = Vector3::Zero() |
| local attach position | |
| Vector3 | targetTwistAxis = Vector3::Right() |
| local twist axis (cone axis) | |
| float | swingLimit = std::numbers::pi_v<float> |
| rotation limit from twist axis (cone angle) [0, pi] | |
| float | twistLimit = std::numbers::pi_v<float> |
| rotation limit about twist axis [0, pi] | |
| float | maxFrictionTorque = 0.0f |
| max torque to apply as friction (Nm) [0, inf] | |
Static Public Attributes | |
| static constexpr auto | type = ConstraintType::SwingTwistConstraint |
Constraint settings to attach two bodies with a shoulder-like joint, limiting relative motion to rotation within a cone.