moveFromAngle method
Move Player to direction by radAngle
Implementation
@override
void moveFromAngle(double angle, {double? speed}) {
if (_perCellEnabled) {
switch (BonfireUtil.getDirectionFromAngle(angle, directionSpace: 45)) {
case Direction.left:
moveLeft();
break;
case Direction.right:
moveRight();
break;
case Direction.up:
moveUp();
break;
case Direction.down:
moveDown();
break;
default:
}
} else {
super.moveFromAngle(angle, speed: speed);
}
}