<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/ManipulationComponent/HitTarget",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation21ManipulationComponentV9HitTargetV"
  },
  "title" : "ManipulationComponent.HitTarget"
}
-->

# ManipulationComponent.HitTarget

A component that redirects input to a different entity with a `ManipulationComponent`.

```
struct HitTarget
```

## Overview

Add this component to an entity and set `redirectedEntity` to another entity
that should activate when interaction occurs on the entity with the `HitTarget` component:

```swift
// Configure an entity for interaction.
entityToMove.components.set(ManipulationComponent())

// Create a component redirecting input to `entityToMove`.
let targetComponent = ManipulationComponent.HitTarget(redirectedEntity: entityToMove)

// Apply it to another entity. Now when input occurs on `proxyTarget`,
// the interaction on `entityToMove` will trigger.
proxyTarget.components.set(targetComponent)
```

---

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)