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.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine.LowLevelPhysics2D
- Assembly: UnityEngine.Physics2DModule
public void ApplyWind(Vector2 force, float drag, float lift, bool wake = true)