moveToPositionAlongThePath method
Implementation
void moveToPositionAlongThePath(
Vector2 position, {
List? ignoreCollisions,
}) {
this.ignoreCollisions.clear();
this.ignoreCollisions.add(this);
if (ignoreCollisions != null) {
this.ignoreCollisions.addAll(ignoreCollisions);
}
_currentIndex = 0;
_calculatePath(position.toOffset());
}