<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GroupActivities",
  "identifier" : "/documentation/GroupActivities/SpatialTemplateElementDirection/lookingAt(_:)-1d7ak",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Group Activities"
    ],
    "preciseIdentifier" : "s:15GroupActivities31SpatialTemplateElementDirectionV9lookingAtyAcA0cdE8PositionVFZ"
  },
  "title" : "lookingAt(_:)"
}
-->

# lookingAt(_:)

Creates a direction that orients the participant to face the
specified point in the shared coordinate space.

```
static func lookingAt(_ position: SpatialTemplateElementPosition) -> SpatialTemplateElementDirection
```

## Parameters

`position`

A location in the shared coordinate space. Specify
positions as an offset from the app’s content using the
[`SpatialTemplateElementPosition`](/documentation/GroupActivities/SpatialTemplateElementPosition) type.

## Return Value

A direction type that faces the specified position in
the coordinate space.

---

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)