Skip to main content

Module bending

Module bending 

Expand description

Bounded, zero-heap vegetation instance pool and dynamic collision bending.

Evaluates collider displacement and wind response on vegetation instances, writing directly into caller-provided GpuInstanceRecord slices for mesh instancing without heap allocation.

Structs§

VegetationBendingParams
Physical parameters controlling vegetation stiffness, recovery, and wind reaction.
VegetationCollider
A dynamic physical collider (character, vehicle, projectile) interacting with foliage.
VegetationEvaluator
Zero-heap evaluator for dynamic vegetation instances.
VegetationInstanceState
Persistent state for a single vegetation instance in the pool.

Constants§

MAX_VEGETATION_COLLIDERS
Maximum number of dynamic colliders evaluated against vegetation per step.