# PhysicsBody.WindInput

> Input to PhysicsBody.ApplyWind describing the wind velocity, drag and lift coefficients and the shape filter used to compute aerodynamic forces per attached shape.

## Definition

* **Type:** Struct
* **Namespace:** [Unity.U2D.Physics](/engine/6000.7/script-reference/unity/u2d/physics.md)
* **Assembly:** UnityEngine.PhysicsCore2DModule
* **Implements:** [IEquatable\<WindInput>](https://learn.microsoft.com/dotnet/api/system.iequatable-1)

```csharp
public struct PhysicsBody.WindInput : IEquatable<PhysicsBody.WindInput>
```

## Static Fields

| Value                                                                                           | Description                                                                                                                                                                                                                                                                          |
| ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [MaxForce](/engine/6000.7/script-reference/unity/u2d/physics/physicsbody/windinput/maxforce.md) | The maximum magnitude allowed for each component of [\_force](/engine/6000.7/script-reference/unity/u2d/physics/physicsbody/windinput/force.md). Larger magnitudes have no useful effect because body speeds are capped each simulation step, so values are clamped into this range. |

## Constructors

| Constructor                                                                                    | Description                                                                                                                                                                                                                                                                                                                                                                                 |
| ---------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [WindInput()](/engine/6000.7/script-reference/unity/u2d/physics/physicsbody/windinput/ctor.md) | Create a default [PhysicsBody.WindInput](/engine/6000.7/script-reference/unity/u2d/physics/physicsbody/windinput.md). The [\_mask](/engine/6000.7/script-reference/unity/u2d/physics/physicsbody/windinput/mask.md) defaults to [PhysicsMask.All](/engine/6000.7/script-reference/unity/u2d/physics/physicsmask/all.md) so every attached shape contributes unless explicitly filtered out. |

## Properties

| Property                                                                                              | Description                                                                                                                                                                                                                                                                                                                                               |
| ----------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [drag](/engine/6000.7/script-reference/unity/u2d/physics/physicsbody/windinput/drag.md)               | Drag coefficient. Scales the wind contribution in the relative-velocity term that drives the per-shape aerodynamic force.                                                                                                                                                                                                                                 |
| [force](/engine/6000.7/script-reference/unity/u2d/physics/physicsbody/windinput/force.md)             | The wind velocity vector. Scaled by [\_drag](/engine/6000.7/script-reference/unity/u2d/physics/physicsbody/windinput/drag.md) when computing the per-shape aerodynamic relative velocity. Each component's magnitude is clamped to [PhysicsBody.WindInput.MaxForce](/engine/6000.7/script-reference/unity/u2d/physics/physicsbody/windinput/maxforce.md). |
| [lift](/engine/6000.7/script-reference/unity/u2d/physics/physicsbody/windinput/lift.md)               | Lift coefficient. Scales the perpendicular component of the per-edge aerodynamic force (capsules and polygons only; circles ignore lift).                                                                                                                                                                                                                 |
| [mask](/engine/6000.7/script-reference/unity/u2d/physics/physicsbody/windinput/mask.md)               | Category mask used to filter which attached shapes contribute. A shape participates iff (shape.contactFilter.categories.bitMask & mask.bitMask) != 0. Defaults to [PhysicsMask.All](/engine/6000.7/script-reference/unity/u2d/physics/physicsmask/all.md) when the input is created via the parameterless constructor.                                    |
| [useTriggers](/engine/6000.7/script-reference/unity/u2d/physics/physicsbody/windinput/usetriggers.md) | When true, trigger shapes contribute to wind alongside non-trigger shapes. When false, trigger shapes are skipped.                                                                                                                                                                                                                                        |
