기술 자료

Unity Engine

Unity Engine

useOneWay

Should the one-way collision behaviour be used?
읽는 시간 1분최근 업데이트: 20일 전

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public bool useOneWay { get; set; }

Remarks

When true, collisions are only allowed when the linear velocity, transformed into the local-space of the target Collider2D, are less than zero. For Collider2D that are not rotated in Z, this equates to a vertical velocity less than zero.