docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class AutoRouter

    AutoRouter utility class is used to find a route around obstacles from source to target

    Inheritance
    object
    AutoRouter
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Mechatronics.SystemGraph
    Assembly: solution.dll
    Syntax
    public class AutoRouter

    Methods

    Name Description
    ComputeEdgeSpacing(SystemEdgeControl, PathDescriptor, List<EdgeDescriptor>, float, float)

    Compute the edge spacing so that edges don't overlap

    EdgeFineTuning(PathDescriptor)

    Fine tune the edge path by creating 45 degree turns

    GetRectIntersection(Line, Rect, ref Vector2, ref Vector2)

    Get the intersection status and points between a line and a rect.

    GetSideDistances(List<Rect>, Vector2, ref float, ref float)

    Get the left and right x coordinates that a line would intersect from a given point to a list of obstacles.

    Path(ref PathDescriptor, List<Rect>, Vector2, Vector2, Vector2, Vector2, int)

    Trace the path for a series of obstacles using the state descriptor provided

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)