Exemple #1
0
        public static bool Linecast(Vector3 start, Vector3 end, out RaycastHit hitInfo)
        {
            int layerMask = -5;

            return(Physics.Linecast(start, end, out hitInfo, layerMask));
        }
Exemple #2
0
        public static bool Linecast(Vector3 start, Vector3 end)
        {
            int layerMask = -5;

            return(Physics.Linecast(start, end, layerMask));
        }