SKPhysicsJoint Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Base class for subtypes that join bodies in the physics engine.
[Foundation.Register("SKPhysicsJoint", true)]
public class SKPhysicsJoint : Foundation.NSObject, Foundation.INSSecureCoding, IDisposable
[<Foundation.Register("SKPhysicsJoint", true)>]
type SKPhysicsJoint = class
inherit NSObject
interface INSCoding
interface INativeObject
interface IDisposable
interface INSSecureCoding
- Inheritance
- Derived
- Attributes
- Implements
Remarks
Joints must be added to the SKScene's PhysicsWorld after the SKPhysicsBodys of the SKPhysicsJoint. Adding the joint prior to adding the SKPhysicsBodys will result in a segfault.
Subclasses of SKPhysicsJoint have a Create static method that should be used to construct instances.
![]()
| Class | Description |
|---|---|
| SKPhysicsJointFixed | Fuses two bodies without allowing movement. |
| SKPhysicsJointLimit | Limits the maximum distance between two bodies. |
| SKPhysicsJointPin | Allows two bodies to rotate around an anchor point. |
| SKPhysicsJointSliding | Allows two bodies to move along an axis. |
| SKPhysicsJointSpring | Connects two bodies with a spring. |
Constructors
| Name | Description |
|---|---|
| SKPhysicsJoint() |
Creates a new SKPhysicsJoint with default values. |
| SKPhysicsJoint(NativeHandle) |
A constructor used when creating managed representations of unmanaged objects. Called by the runtime. |
| SKPhysicsJoint(NSCoder) |
A constructor that initializes the object from the data stored in the unarchiver object. |
| SKPhysicsJoint(NSObjectFlag) |
Constructor to call on derived classes to skip initialization and merely allocate the object. |
Properties
| Name | Description |
|---|---|
| AccessibilityAttributedUserInputLabels | (Inherited from NSObject) |
| AccessibilityRespondsToUserInteraction | (Inherited from NSObject) |
| AccessibilityTextualContext | (Inherited from NSObject) |
| AccessibilityUserInputLabels | (Inherited from NSObject) |
| BodyA | |
| BodyB | |
| Class | (Inherited from NSObject) |
| ClassHandle |
The Objective-C class handle for this class. |
| DebugDescription | (Inherited from NSObject) |
| Description | (Inherited from NSObject) |
| ExposedBindings | (Inherited from NSObject) |
| Handle |
Handle (pointer) to the unmanaged object representation. (Inherited from NSObject) |
| IsDirectBinding | (Inherited from NSObject) |
| IsProxy | (Inherited from NSObject) |
| ReactionForce | |
| ReactionTorque | |
| RetainCount | (Inherited from NSObject) |
| Self | (Inherited from NSObject) |
| Superclass | (Inherited from NSObject) |
| SuperHandle |
Handle used to represent the methods in the base class for this NSObject. (Inherited from NSObject) |
| Zone | (Inherited from NSObject) |