Wind
Wind simulation affects aerodynamic calculations by modifying relative airflow directions and speeds. Both Airfoil and AerodynamicDragObject components respond to wind, creating realistic flight behavior in varying wind conditions.
Wind is implemented as a global singleton system, meaning only one wind generator can be present in the scene at a time. This ensures consistent wind conditions across all aircraft and aerodynamic objects.
Setup
- Attach a wind generator component to any GameObject in the scene (typically a global manager object)
- Only one wind generator should be active per scene
- Wind data is globally accessible to all
AirfoilandAerodynamicDragObjectcomponents - Wind works in conjunction with Atmosphere to simulate realistic environmental conditions
Wind Generators
Wind generators define how wind behaves in the scene. The system supports built-in implementations and custom extensions.
Random Wind Generator
See RandomWindGenerator for more information about the built-in random wind generator implementation.
Custom Wind Generators
By inheriting from NWH.Aerodynamics.Environment.WindGeneratorBase, custom wind generators can be created to implement specific wind behavior patterns for specialized simulations or procedural wind systems.