/// <summary> /// Reports all edges intersecting specified disc while IDiscCast.RegisterCollision returns true. /// A NativeQueue and NativeHashSet will be created with the specified allocator, and disposed before returning. /// </summary> /// <param name="discCast">Cast data</param> /// <param name="allocator">Allocator used to create internal buffers</param> public static void CastDisc <T>(this Navmesh navmesh, T discCast, Allocator allocator) where T : IDiscCast { var open = new NativeList <IntPtr>(allocator); var closed = new NativeHashSet <int>(32, allocator); navmesh.CastDisc(discCast, open, closed); open.Dispose(); closed.Dispose(); }
public void Execute() { Navmesh.CastDisc(Input, Allocator.Temp); }