Version: 2023.1
言語: 日本語
public Vector2 normal ;

説明

A normalized vector that points from pointB to pointA.

The normalized vector points from pointB to pointA. When it is scaled with the distance is produces a vector that can be used to move the Collider2D so that they are no longer overlapped (if the distance is negative) or so they are touching (if the distance is positive).