UnityEngine.NavMeshAgent.Raycast C# (CSharp) Method

Raycast() public method

public Raycast ( Vector3 targetPosition, NavMeshHit &hit ) : bool
targetPosition Vector3
hit NavMeshHit
return bool
        public bool Raycast(Vector3 targetPosition, out NavMeshHit hit)
        {
            return INTERNAL_CALL_Raycast(this, ref targetPosition, out hit);
        }

Usage Example

コード例 #1
0
 static public int Raycast(IntPtr l)
 {
     try {
         UnityEngine.NavMeshAgent self = (UnityEngine.NavMeshAgent)checkSelf(l);
         UnityEngine.Vector3      a1;
         checkType(l, 2, out a1);
         UnityEngine.NavMeshHit a2;
         var ret = self.Raycast(a1, out a2);
         pushValue(l, ret);
         pushValue(l, a2);
         return(2);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
All Usage Examples Of UnityEngine.NavMeshAgent::Raycast