moveFromAngle method

void moveFromAngle(
  1. double angle, {
  2. double? speed,
})

Move Player to direction by radAngle

Implementation

void moveFromAngle(double angle, {double? speed}) {
  _lastSpeed = speed ?? this.speed;
  velocity = BonfireUtil.vector2ByAngle(angle, intensity: _lastSpeed);
}