|
NcEngine
|
Constraint settings to attach two bodies with a slider, limiting relative motion to a single axis of translation. More...
#include <Constraints.h>
Public Attributes | |
| Vector3 | ownerPosition = Vector3::Zero() |
| local attach position | |
| Vector3 | ownerSliderAxis = Vector3::Right() |
| local axis of translation | |
| Vector3 | ownerNormalAxis = Vector3::Up() |
| local reference axis perpendicular to ownerSliderAxis | |
| Vector3 | targetPosition = Vector3::Zero() |
| local attach position | |
| Vector3 | targetSliderAxis = ownerSliderAxis |
| local axis of translation | |
| Vector3 | targetNormalAxis = ownerNormalAxis |
| local reference axis perpendicular to targetSliderAxis | |
| float | minLimit = -1.0f |
| slider length in negative direction [-inf, 0] ( |minLimit| + maxLimit > 0 ) | |
| float | maxLimit = 1.0f |
| slider length in positive direction [0, inf] | |
| float | maxFrictionForce = 0.0f |
| max friction force that can be applied (N) [0, inf] | |
| SpringSettings | springSettings = SpringSettings{} |
| settings to soften the limits | |
Static Public Attributes | |
| static constexpr auto | type = ConstraintType::SliderConstraint |
Constraint settings to attach two bodies with a slider, limiting relative motion to a single axis of translation.