기술 자료

Unity Engine

Unity Engine

normal

Surface normal at the contact point.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public Vector2 normal { get; }

Remarks

This is the normal vector, that is the vector that is perpendicular to the surface or the incoming Collider2D at the contact point.
Additional Resources: Collider2D class.