ContactPoint2D.normal

public Vector2 normal;

Description

Surface normal at the contact point.

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

See Also: Collider2D class.

对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答