One Logo Pool Ball
RealityFoundation · IOS API REFERENCE

PhysicsJointsComponent

struct · iOS 18.0+ · SDK 27.1

struct PhysicsJointsComponent

A component that stores physics joints which RealityKit simulates. Add this component to an entity, or any child of an entity, that has a ``PhysicsSimulationComponent``. All joints in the `PhysicsJointsComponent` need to reference entities under the same ``PhysicsSimulationComponent`` tree. Add a joint to the correct `PhysicsJointsComponent` instance by calling its ``PhysicsJoint/addToSimulation()-886c4`` method.

Members (3)

get · iOS 18.0+

joints

TypeScript
get joints(): PhysicsJoints
Swift declaration
var joints: PhysicsJoints

The set of joints the physics joints component stores. Add a joint to the correct ``PhysicsJointsComponent`` instance by calling its ``PhysicsJoint/addToSimulation()-886c4`` method.

set · iOS 18.0+

joints

TypeScript
set joints(value: PhysicsJoints)
Swift declaration
var joints: PhysicsJoints

The set of joints the physics joints component stores. Add a joint to the correct ``PhysicsJointsComponent`` instance by calling its ``PhysicsJoint/addToSimulation()-886c4`` method.

init · iOS 18.0+

init

TypeScript
static init(): PhysicsJointsComponent
Swift declaration
init()

Creates a new physics joints component. The initializer sets the component's ``PhysicsJointsComponent/joints`` property to an empty set.

Skipped declarations

No declarations were skipped in this snapshot.

All RealityFoundation types →