<!--
{
  "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/AnchoringComponent/init(_:trackingMode:physicsSimulation:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation18AnchoringComponentV_12trackingMode17physicsSimulationA2C6TargetO_AC08TrackingF0VAC07PhysicsH0Otcfc"
  },
  "title" : "init(_:trackingMode:physicsSimulation:)"
}
-->

# init(_:trackingMode:physicsSimulation:)

Creates an anchoring component for a given target, tracking mode and physics simulation.

```
init(_ target: AnchoringComponent.Target, trackingMode: AnchoringComponent.TrackingMode, physicsSimulation: AnchoringComponent.PhysicsSimulation = .isolated)
```

## Parameters

`target`

The kind of real world object to target.

`trackingMode`

The tracking mode of the entity.

`physicsSimulation`

The physics simulation space the entity will be in.

---

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)