update method
Updates path following movement.
Implementation
void update(double dt) {
if (_currentPath.isNotEmpty) {
if (!_comp.moveToPosition(_currentPath[_currentIndex])) {
_goToNextPosition();
}
}
}
Updates path following movement.
void update(double dt) {
if (_currentPath.isNotEmpty) {
if (!_comp.moveToPosition(_currentPath[_currentIndex])) {
_goToNextPosition();
}
}
}