struct
DistanceConstraintRelation that holds the information for a distance constraint between two physics bodies.
Public variables
- bool isRigid
- Whether the constraint enforces a fixed distance or a range.
- float fixedDistance
- Fixed distance between anchor points (only used in the rigid case)
- float minDistance
- Minimum distance between anchor points (only used when non-rigid)
- float maxDistance
- Maximum distance between anchor points (only used when non-rigid)
- glm::vec3 localAnchor1
- The local contact point relative to the center of mass of the first body.
- glm::vec3 localAnchor2
- The local contact point relative to the center of mass of the second body.
- glm::vec3 deltaCenter
- The world-space vector from the center of the first body to the second.
- float axialMass
- Effective mass to use for impulse calculation.
- float impulse
- Stored impulse for warmstarting.
- float lowerImpulse
- Stored impulse for warmstarting.
- float upperImpulse
- Stored impulse for warmstarting.