DistanceJoint3D constructor

DistanceJoint3D({
  1. EntityTarget connectedBody = EntityTarget.none,
  2. Vector3? anchor,
  3. bool enabled = true,
  4. Vector3? connectedAnchor,
  5. double minDistance = -1.0,
  6. double maxDistance = -1.0,
  7. double springFrequency = 0.0,
  8. double springDamping = 0.0,
})

A joint from anchor to connectedAnchor; the distance range is what they are apart when it is made, unless minDistance and maxDistance are given (0 or more).

Implementation

DistanceJoint3D({
  super.connectedBody,
  super.anchor,
  super.enabled,
  Vector3? connectedAnchor,
  this.minDistance = -1.0,
  this.maxDistance = -1.0,
  this.springFrequency = 0.0,
  this.springDamping = 0.0,
}) : connectedAnchor = connectedAnchor ?? Vector3.zero();