Methods.IsOnAnAnchor - notruilin/DeceptionGame GitHub Wiki

public Vector3 IsOnAnAnchor(Vector3 pos);

Parameters

pos A Vector3 position

Description

Checks if the position is on an anchor. If the pos is on one anchor, return the position of the anchor's center, else return Vector3.zero.