> 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="/files/Pxb9F1D6r6SRb7Q5t5rd" 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="/files/DMNOB8jU0ESMAA9yCEoG" alt=""><figcaption></figcaption></figure>
