init(pin0:pin1:angularLimit:checksForInternalCollisions:)
Creates a new revolute joint.
Declaration
init(pin0: GeometricPin, pin1: GeometricPin, angularLimit: 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.
- angularLimit:
Limits of the rotation around the pin’s x-axis if defined.
- checksForInternalCollisions:
A Boolean that indicates whether the joint checks for collisions between the two Entity instances.