> For the complete documentation index, see [llms.txt](https://soulslike-framework.isik.vip/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://soulslike-framework.isik.vip/components-managers/player-specific-components/radar-and-radar-element-components.md).

# Radar & Radar Element Components

<div align="left"><figure><img src="https://3303637552-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOAGs3il6rJbkejwPOlEP%2Fuploads%2FOXndO6hKeLj0uEuE8Vaf%2FActorComponent_64x.png?alt=media&amp;token=b00844b2-cbc3-4f89-9f4b-d2c8e193007c" alt=""><figcaption></figcaption></figure></div>

The **AC\_RadarManager** is a component responsible for managing the **Radar/Compass UI** in the framework. It tracks cardinal directions, player orientation, and important tracked elements dynamically. The system updates based on camera movement, ensuring efficient and optimized performance.

It is added to the **PlayerController** class by default **(PC\_SoulslikeFramework).**

### **How It Works**

* **Initialization**
  * The `Initialize` function sets up all necessary properties such as the UI element, provided cardinal entries & the player icon.
* **Interval Based Updates & Optimization**
  * The **Update Timer** is controlled by `SetupUpdateTimer()`, which p**auses updates** when necessary.
* #### **Cardinal & Element Tracking**
  * The **`RefreshCardinals`** function adjusts the position of the provided cardinal letters based on the camera rotation using calculation methods to ensure correct alignment.
* **Tracked Elements (`RefreshTrackedElements()`)**
  * Dynamically updates tracked icons (e.g., quest markers).
  * Uses `TrackedComponents[]` to store active elements.
  * Icons **clamp at a fixed radar range**, preventing off-screen distortion.

### Example Usage

<figure><img src="https://3303637552-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOAGs3il6rJbkejwPOlEP%2Fuploads%2FOQo8mRdAbvWNEYxkRlLp%2Fimage.png?alt=media&amp;token=20a7c721-a39d-4d41-9c55-9bed777cc8ca" alt=""><figcaption></figcaption></figure>
