Table of Contents

Class PathFinder

Namespace
VoxelPlayground.AI
Assembly
GamePlay.dll
public class PathFinder
Inheritance
object
PathFinder

Fields

canGoDiagonal

public bool canGoDiagonal

Field Value

bool

debugList

public List<Vector3> debugList

Field Value

List<Vector3>

distanceThreshold

public float distanceThreshold

Field Value

float

maxSmoothness

public float maxSmoothness

Field Value

float

minSmoothness

public float minSmoothness

Field Value

float

Methods

Dispose()

public void Dispose()

Init()

public void Init()

SearchPathHelper_New(Vector3, Vector3, bool, bool)

public UniTask<List<PathFinder.VoxelNode>> SearchPathHelper_New(Vector3 start_worldSpace, Vector3 end_worldSpace, bool returnFallbackPath = false, bool sync = false)

Parameters

start_worldSpace Vector3
end_worldSpace Vector3
returnFallbackPath bool
sync bool

Returns

UniTask<List<PathFinder.VoxelNode>>

SmoothPath(List<VoxelNode>)

public List<Vector3> SmoothPath(List<PathFinder.VoxelNode> rawPath)

Parameters

rawPath List<PathFinder.VoxelNode>

Returns

List<Vector3>

ValidationCheck(Vector3, Vector3)

public bool ValidationCheck(Vector3 start_worldSpace, Vector3 end_worldSpace)

Parameters

start_worldSpace Vector3
end_worldSpace Vector3

Returns

bool