Physics joints and pins
Simulate joint physics that connect virtual objects.
Overview
In a 3D environment, you can animate various attributes of an Entity such as its location, rotation, and size from one value to another. This is ideal for simple pre-defined motion, but does not allow for interaction with external forces, such as collisions with other objects, or gestures. With a PhysicsJoint you can connect entities with pins, and RealityKit keeps your entities bound by constraints that you define.
Each joint consists of two pins, each of which belongs to a different entity. Each GeometricPin moves and rotates relative to each other within the bounds of the joint’s constraints.
Topics
Pin and joint components
Simulating physics joints in your RealityKit appGeometricPinGeometricPinsComponentPhysicsJointPhysicsJointsComponentEntityGeometricPinsAttachedTransformComponent