public static bool SamplePosition(Vector3 sourcePosition, out XNavMeshHit hit, float maxDistance, ushort exclude) { hit = new XNavMeshHit(); return(DetourMgrEx.detourMgrSamplePosition(ref sourcePosition, ref hit, maxDistance, exclude)); }
public static extern bool detourMgrSamplePosition([In] ref Vector3 pos, ref XNavMeshHit hit, float maxDistance, ushort exclude);
public static bool Raycast(Vector3 sourcePosition, Vector3 targetPosition, out XNavMeshHit hit, ushort exclude) { hit = new XNavMeshHit(); return(DetourMgrEx.detourMgrRayCast(ref sourcePosition, ref targetPosition, ref hit, exclude)); }
public static extern bool detourMgrRayCast([In] ref Vector3 start, [In] ref Vector3 end, ref XNavMeshHit hit, ushort exclude);