Class

SCNPhysicsBallSocketJoint

A physics behavior that connects two physics bodies and allows them to pivot around each other in any direction.

Declaration

@interface SCNPhysicsBallSocketJoint : SCNPhysicsBehavior

Overview

A ball and socket joint has three rotational degrees of freedom and zero translational degrees of freedom. You can also use a ball and socket joint to pin a body to a specific location in the coordinate space of the node containing it while allowing it to rotate freely.

Topics

Creating a Ball and Socket Joint

+ jointWithBodyA:anchorA:bodyB:anchorB:

Creates a ball and socket joint connecting two physics bodies.

+ jointWithBody:anchor:

Creates a ball and socket joint that anchors a single physics body in space and allows it to rotate freely around an anchor point.

Managing the Characteristics of a Ball and Socket Joint

bodyA

The first physics body connected by the joint.

anchorA

The point at which the joint connects, relative to the node containing the first body.

bodyB

The second physics body connected by the joint.

anchorB

The point at which the joint connects, relative to the node containing the second body.

Relationships

Inherits From

See Also

Joints

SCNPhysicsHingeJoint

A physics behavior that connects two bodies and allows them to pivot around each other on a single axis.

SCNPhysicsSliderJoint

A physics behavior that connects two bodies and allows them to slide against each other and rotate around their connecting points.