struct

GpuSwarmComponent

A swarm simulated entirely on the GPU (boids: separation, alignment, cohesion) and drawn from the same buffers through the GPU-culled instanced path. The agents live in a cube of side 2 x Half Size around the entity and wrap at its faces. Changing the count, the cube, the radius or the seed rebuilds the swarm from its seed.

Module
GpuEcs
Header
#include "GpuEcs/GpuSwarmComponent.h"
Namespace
Mowo
Reflection
Reflected by MowoHeaderTool

Properties

TypeNameDescription
boolenabledDefault true.
int32_tagentsDefault 100000.
floathalfSizeDefault 40.0f.
floatradiusDefault 2.0f.
floatmaxSpeedDefault 6.0f.
floatminSpeedDefault 2.0f.
floatseparationDefault 1.5f.
floatalignmentDefault 1.0f.
floatcohesionDefault 0.6f.
floatagentSizeDefault 0.5f.
Vec3colorDefault Vec3(0.85f, 0.55f, 0.2f).
int32_tseedDefault 1.
boolsimulateInEditorOff, the swarm stands still in the editor and moves only at play. Default false.
uint64_tstepsDefault 0.
Generated from GpuEcs/GpuSwarmComponent.h via gpuecs.json · Oct 31, 2026Version 1.0.0