See Also: SKPhysicsJoint Members
Joints must be added to the SpriteKit.SKScene's SKScene.PhysicsWorld after the SpriteKit.SKPhysicsBodys of the SpriteKit.SKJoint. Adding the joint prior to adding the SpriteKit.SKPhysicsBodys will result in a segfault.
Subclasses of SpriteKit.SKPhysicsJoint have a Create static method that should be used to construct instances.
Class | Description |
---|---|
SpriteKit.SKPhysicsJointFixed | Fuses two bodies without allowing movement. |
SpriteKit.SKPhysicsJointLimit | Limits the maximum distance between two bodies. |
SpriteKit.SKPhysicsJointPin | Allows two bodies to rotate around an anchor point. |
SpriteKit.SKPhysicsJointSliding | Allows two bodies to move along an axis. |
SpriteKit.SKPhysicsJointSpring | Connects two bodies with a spring. |