SliderJoint3DComponent constructor
SliderJoint3DComponent({})
A slider along axis (this entity's +X by default).
Implementation
SliderJoint3DComponent({
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 = Motor3DState.off,
this.motorTarget = 0.0,
this.motorMaxForce = 0.0,
}) : axis = axis ?? Vector3(1, 0, 0);