Radar & Radar Element Components

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

Last updated

Was this helpful?