Crux 2.0 is a complete rewrite with a completely redesigned editor, Mesh Terrain support, customizable scriptable objects (Crux Objects), improved functionality and API, and tons more.
Now Includes Integrated UniStorm Support
UniStorm support allows optional special conditions such as time of day, weather, and seasonal spawning.
Crux is a runtime procedural AI spawner capable of spawning AI dynamically across terrains according to customized biomes and conditions. Individual Scriptable Objects are used for storing all the information that Crux needs to properly spawn objects. When using a Unity terrain, the texture at the spawning position is used to determine what biome to pick objects from. When this happens, Crux will randomly spawn objects according to that specific biome, as well as other global and individual object conditions. When the spawned objects hit Crux’s despawn radius, they will be despawned and put back into Crux’s object pool. The total number of each object is customizable and always tracked to ensure a well-balanced population. This is also done to allow great performance which allow games to feel populated with more complex objects, such as AI, without having to have 100’s of AI running in the background.
How it Works
Users create biomes that are defined by as many textures as needed. As the player moves through the terrain, the spawn position gets the texture and spawns AI according to the biome and the conditions. Each biome has 3 categories of AI; Wildlife, Creatures, and NPCs each with their own rarity and conditions for spawning. For example, your Wildlife category for the Forest Biome has a 60% of spawning. When a successful spawn happens, Crux randomly picks an AI from the Wilderness Category where deer and rabbits are common whereas fox and bear are rare. Crux uses customizable population caps for each object to help keep environments balanced and realistic. A simple wandering AI script and example scenes are included.