SliderJoint3D constructor
SliderJoint3D({})
A slider along axis (this entity's +X by default).
Implementation
SliderJoint3D({
super.connectedBody,
super.anchor,
super.enabled,
Vector3? axis,
this.useLimits = false,
this.minPosition = -1.0,
this.maxPosition = 1.0,
this.friction = 0.0,
this.motor = MotorState3D.off,
this.motorTarget = 0.0,
this.motorMaxForce = 0.0,
}) : axis = axis ?? Vector3(1, 0, 0);