selfSnap method
A stored placed point this raw point should land on exactly, or null.
Implementation
@override
Vector2? selfSnap(Vector2 raw, double apertureWorld) {
if (_walls >= 2 && raw.distanceTo(points.first) <= apertureWorld) {
return points.first;
}
if (_walls >= 1 && raw.distanceTo(points.last) <= apertureWorld) {
return points.last;
}
return null;
}