A joint that simulates a spring connecting two physics bodies.
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
SKPhysicsJointSpring object simulates connecting two physics bodies together with a spring. The farther the two objects move from each other, the more force is applied to bring the two bodies back together.
Configuring a Spring Joint
Defines how the spring’s motion should be damped due to the forces of friction.
Defines the frequency or stiffness characteristics of the spring.
The abstract superclass for objects that connect physics bodies.
A joint that imposes a maximum distance between two physics bodies, as if they were connected by a rope.
A joint that pins together two physics bodies, allowing independent rotation.