public NextRayFanData(int depthLeft, RayStretcher parent, Vector2 origin, Vector2 straightDirection, List <Vector2> pathYet, LayerMask rayMask) { this.depthLeft = depthLeft; this.parent = parent; this.origin = origin; this.straightDirection = straightDirection; this.pathYet = pathYet; this.rayMask = rayMask; }
public RayFan(int depthLeft, RayStretcher parent, Vector2 origin, Vector2 straightDirection, List <Vector2> pathYet, LayerMask rayMask) { this.depthLeft = depthLeft; this.parent = parent; this.origin = origin; this.straightDirection = straightDirection; this.pathYet = pathYet; this.rayMask = rayMask; maxRays = (int)(parent.rayArc * 2f / parent.raySpacing); }