ApplyWind(Vector2, float, float, bool)
Apply a wind force to the shape body using the density of air This considers the projected area of the shape in the wind direction. This also considers the relative velocity of the shape. This only has an effect if the shape body is RigidbodyType2D.Dynamic. This only has an effect of shapes of type Circle, Capsule or Polygon.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: UnityEngine.LowLevelPhysics2D
- Assembly: UnityEngine.Physics2DModule
public void ApplyWind(Vector2 force, float drag, float lift, bool wake = true)