init(pin0:pin1:linearLimit:checksForInternalCollisions:)
Creates a new prismatic joint.
Declaration
init(pin0: GeometricPin, pin1: GeometricPin, linearLimit: ClosedRange<Float>? = nil, checksForInternalCollisions: Bool = false)Parameters
- pin0:
The local position and orientation on the first entity.
- pin1:
The local position and orientation on the second entity.
- linearLimit:
A limit of the the translation of
pin1frompin0in the direction of the x-axis ofpin0. - checksForInternalCollisions:
A Boolean that indicates whether the joint checks for collisions between the two Entity instances.