기술 자료

Unity Engine

Unity Engine

ApplyWind(PhysicsAABB, WindInput)

Apply wind forces to every dynamic body shape that overlaps aabb in this world. The same PhysicsBody.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.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public void ApplyWind(PhysicsAABB aabb, PhysicsBody.WindInput input)

Parameters

The world-space axis-aligned box describing the wind volume. Only shapes whose broadphase AABB overlaps this box are processed.

The wind configuration. See PhysicsBody.WindInput.