# 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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://soulslike-framework.isik.vip/components-managers/player-specific-components/radar-and-radar-element-components.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
