Constructor
new PathBuilder(space, start, end, smooth)
Create a new PathBuilder.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
space | Space | Space to generate the Path in | |
start | Vec2 | Starting position of the Path | |
end | Vec2 | Ending position of the Path | |
smooth | boolean | true | Whether to smooth/simplify the path by removing unnecessary points. This makes for much more realistic (and efficient to use) paths (Optional) |
Methods
get() → {Path|null}
Get the resulting Path.
Returns:
The resulting path, or null if unsuccessful.
- Type:
- Path |
null