Instance Method

add(_:)

Adds a joint to the physics world.

Declaration

func add(_ joint: SKPhysicsJoint)

Parameters

joint

The joint to add.

Discussion

For a joint to take effect, it must be added to the physics world.

See Also

Joining Physics Bodies Together

func removeAllJoints()

Removes all joints from the physics world.

func remove(SKPhysicsJoint)

Removes a specific joint from the physics world.