moveUpLeftOnce method

void moveUpLeftOnce({
  1. double? speed,
})

Implementation

void moveUpLeftOnce({double? speed}) {
  _lastSpeed = (speed ?? this.speed) * diaginalReduction;
  setVelocityAxis(y: -_lastSpeed, x: -_lastSpeed);
  onApplyDisplacement(dtUpdate);
  setVelocityAxis(y: 0, x: 0);
}