Skip to content

AvoidanceSystem

Package: com.hypixel.hytale.server.npc.systems

public class AvoidanceSystem extends SteppableTickingSystem

ECS ticking system that applies avoidance and separation steering to NPCs. Runs after RoleSystems.BehaviourTickSystem. For each NPC, blends avoidance and separation forces into the body steering vector, and optionally renders debug visualizations for avoidance, separation, orientation hints, and pre/post-blend steering.

Signature
AvoidanceSystem(@Nonnull ComponentType<EntityStore, NPCEntity> componentType)
ModifierReturn TypeSignature
publicSet<Dependency<EntityStore>>getDependencies()
publicbooleanisParallel(int archetypeChunkSize, int taskCount)
publicQuery<EntityStore>getQuery()
publicvoidsteppedTick(float dt, int index, @Nonnull ArchetypeChunk<EntityStore> archetypeChunk, @Nonnull Store<EntityStore> store, @Nonnull CommandBuffer<EntityStore> commandBuffer)
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.