---
title: AttachedTransformComponent
framework: realitykit
role: symbol
role_heading: Structure
path: realitykit/attachedtransformcomponent
---

# AttachedTransformComponent

A component that stores an optional source pin owned by this entity and a target pin which this entity is attached to

## Declaration

```swift
struct AttachedTransformComponent
```

## Overview

Overview Attach an entity to a target pin owned by another entity with an optional source pin

## Topics

### Initializers

- [init(source:target:)](realitykit/attachedtransformcomponent/init(source:target:).md)

### Instance Properties

- [source](realitykit/attachedtransformcomponent/source.md)
- [target](realitykit/attachedtransformcomponent/target.md)

## Relationships

### Conforms To

- [Component](realitykit/component.md)

## See Also

### Pin and joint components

- [Simulating physics joints in your RealityKit app](realitykit/simulating-physics-joints-in-your-realitykit-app.md)
- [GeometricPin](realitykit/geometricpin.md)
- [GeometricPinsComponent](realitykit/geometricpinscomponent.md)
- [PhysicsJoint](realitykit/physicsjoint.md)
- [PhysicsJointsComponent](realitykit/physicsjointscomponent.md)
- [EntityGeometricPins](realitykit/entitygeometricpins.md)
