View source
enum FlxPathSimplifier
package flixel.path
import flixel.path.FlxPathfinder
Available on all platforms
Values
NONE
No simplification
LINE
Removes nodes that are directly in line with it's neighbors
RAY
Removes nodes who'with neighbors that have no walls directly blocking
Uses tilemap.ray.
RAY_STEP(resolution:Float)
Deprecated: "RAY_STEP is deprecated, use RAY, instead"
Removes nodes who'with neighbors that have no walls directly blocking
Uses tilemap.rayStep.
RAY_BOX(width:Float, height:Float)
Removes nodes who'with neighbors that have no walls directly
blocking a box of the given size. Assumes centered origin
Uses tilemap.ray.
CUSTOM(method:(FlxPathfinderData, Array<FlxPoint>) ‑> Array<FlxPoint>)
calls the method to simplify