---
title: ComputeGraphViewpointComponent
framework: realitykit
role: symbol
role_heading: Structure
platforms: [iOS 27.0+, iPadOS 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: realitykit/computegraphviewpointcomponent
---

# ComputeGraphViewpointComponent

A transient component that provides camera viewpoint information to the particle simulation.

## Declaration

```swift
struct ComputeGraphViewpointComponent
```

## Overview

Overview Attach this component to an entity to supply the simulation with an observer’s position and direction. The simulation uses these values for view-dependent effects such as billboard orientation or camera-facing particles. Both properties are optional. When nil, the simulation falls back to its default viewpoint behavior.

## Topics

### Initializers

- [init()](realitykit/computegraphviewpointcomponent/init().md)

### Instance Properties

- [viewDirection](realitykit/computegraphviewpointcomponent/viewdirection.md)
- [viewPosition](realitykit/computegraphviewpointcomponent/viewposition.md)

## Relationships

### Conforms To

- [Component](realitykit/component.md)
- [TransientComponent](realitykit/transientcomponent.md)
