moveUpRightOnce method

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

Implementation

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