| Parameter | Description |
|---|---|
| aabb | The world-space axis-aligned box describing the fluid volume. Only shapes whose broadphase AABB overlaps this box are processed. |
| input | The fluid and force configuration. See BuoyancyInput. |
| deltaTime | The simulation step duration in seconds. Used to clamp damping so it cannot overshoot in a single step. |
Apply buoyancy, flow and damping forces to every dynamic body shape that overlaps in this world. The same BuoyancyInput is applied to all overlapping shapes. Shapes whose body is not PhysicsBody.BodyType.Dynamic are silently skipped. Forces and torques are continuous (not impulses), so this is expected to be called every simulation step.