<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/EntityGeometricPins/set(named:skeletalJointName:position:orientation:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation19EntityGeometricPinsV3set5named17skeletalJointName8position11orientationAA0D3PinVSS_SSs5SIMD3VySfGSo10simd_quatfatF"
  },
  "title" : "set(named:skeletalJointName:position:orientation:)"
}
-->

# set(named:skeletalJointName:position:orientation:)

Creates and adds a geometric pin to the entity’s skeletal joint, and returns the geometric pin.

```
@discardableResult @MainActor func set(named name: String, skeletalJointName: String, position: SIMD3<Float> = SIMD3<Float>(0, 0, 0), orientation: simd_quatf = simd_quatf(ix: 0, iy: 0, iz: 0, r: 1)) -> GeometricPin
```

## Parameters

`name`

Name of the `GeometricPin` in the namespace of the owning entity.

`skeletalJointName`

The name of the skeletal joint in the namespace of the owning entity.

`position`

The position of the pin, in local space of the joint.

`orientation`

The orientation of the pin, in local space of the joint.

## Return Value

A `GeometricPin`, identifying the newly added reference frame on the [`Entity`](/documentation/RealityKit/Entity).

## Discussion

The pin is added to the entity’s [`GeometricPinsComponent`](/documentation/RealityKit/GeometricPinsComponent).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)