123skipper123 - Cheap Actors Radial Search System

Documentation

Comparison Demonstration

Often, during a game, we need to determine which actors are near the player. The usual solution is to call the GetAllActorsOfClass function, calculate the distance to each of the resulting actors, and compare it with the desired distance. This solution is expensive, as demonstrated in the video.

Cheap Actors Radial Search System - is a plugin that is designed to make it cheaper to get actors near a certain point.

Features:

  • GetAllActorsOfClassRadial - Getting all actors of a certain class within a certain radius of a location (for example, the player's location).

  • AddToDynamicActorsStorage - Adding an actor to the list of dynamic actors in the system (this function must be called before calling the UpdateDynamicOctree. function, and it must be called after spawning dynamic actors).

  • InitDynamicActorsStorage - Full cleaning and updating of the dynamic actor store based on the classes in the Checked Classes parameter.

  • UpdateDynamicOctree - Update the dynamic Octree based on the dynamic storage (must be called after the dynamic actor is spawned, along with the AddToDynamicActorsStorage function).

  • UpdateStaticOctree - Updating the static Octree based on the actor classes from the Checked Classes parameter (must be called after the static actor is spawned).