IsPassable

IsPassable(<-pos1 <-pos2 <-boundingRect <-allowDigToPass)

Description

Checks to see if there is a sand passable path between two points, constrained by a bounds. Returns a bool.
pos1 and pos2 are vectors specifying the start and end world locations.
The boundingRect is a V4 that specifies the area to check in. It specifies the lower left and upper right world positions of a rectangle.
The “allowDigToPass” bool means that area marked for digging will count as passable.

Examples