> For the complete documentation index, see [llms.txt](https://heroicsolo.gitbook.io/heroic-engine/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://heroicsolo.gitbook.io/heroic-engine/basics/useful-components/rotate-to-camera.md).

# Rotate To Camera

Presented by RotateToCamera class, this component faces its gameobject directly to camera. This could be useful for world space UI elements.

<figure><img src="https://1131436974-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9rEHd0nHFvWCSkMEfAjl%2Fuploads%2F95Lf7ntMLUzGYCm17Cef%2Fimage.png?alt=media&amp;token=376f19fb-bf56-4610-aeef-5f323cfeeb34" alt=""><figcaption><p>Rotate To Camera component</p></figcaption></figure>

### Parameters in inspector

**Anchor Transform** – gameobject will be rotated relatively to this transform; if not set, it will use its own transform as anchor

**Anchor Dist** – distance from anchor transform to this object; if its larger than 0, it will rotate around anchor like on orbit
