Pathfinding.FleePath.Setup C# (CSharp) Method

Setup() protected method

protected Setup ( Vector3 start, Vector3 avoid, int searchLength, OnPathDelegate callback ) : void
start Vector3
avoid Vector3
searchLength int
callback OnPathDelegate
return void
		protected void Setup (Vector3 start, Vector3 avoid, int searchLength, OnPathDelegate callback) {
			Setup (start, searchLength, callback);
			aim = avoid-start;
			aim *= 10;
			aim = start - aim;
		}
		

Usage Example

Ejemplo n.º 1
0
        public static FleePath Construct(Vector3 start, Vector3 avoid, int searchLength, OnPathDelegate callback = null)
        {
            FleePath path = PathPool <FleePath> .GetPath();

            path.Setup(start, avoid, searchLength, callback);
            return(path);
        }
All Usage Examples Of Pathfinding.FleePath::Setup