| Parameter | Description |
|---|---|
| input | The wind configuration. See WindInput. |
Apply wind forces to this body's attached shapes. Forces are continuous (not impulses) and are computed per shape by Box2D using the drag/lift coefficients in ; this method is expected to be called every simulation step while the body is exposed to the wind. The body must be PhysicsBody.BodyType.Dynamic; otherwise a warning is logged and the call is a no-op. Sleeping bodies are woken automatically by Box2D when the per-shape force is non-trivial.
| Parameter | Description |
|---|---|
| input | The wind configuration. See WindInput. |
| bodies | The bodies that wind should be applied to. |
Apply wind forces to every body in by iterating each body's attached shapes. The same WindInput is applied to all bodies. Each body must be PhysicsBody.BodyType.Dynamic; non-dynamic or invalid bodies log a warning and are skipped. Forces are continuous (not impulses), so this is expected to be called every simulation step.
| Parameter | Description |
|---|---|
| world | The world to query for overlapping shapes. |
| aabb | The world-space axis-aligned box describing the wind volume. Only shapes whose broadphase AABB overlaps this box are processed. |
| input | The wind configuration. See WindInput. |
Apply wind forces to every dynamic body shape that overlaps in . The same WindInput is applied to all overlapping shapes. Shapes whose body is not PhysicsBody.BodyType.Dynamic are silently skipped. Forces are continuous (not impulses), so this is expected to be called every simulation step.