moveRightOnce method

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

Implementation

void moveRightOnce({double? speed}) {
  _lastSpeed = speed ?? this.speed;
  setVelocityAxis(x: _lastSpeed);
  onApplyDisplacement(dtUpdate);
  setVelocityAxis(x: 0);
}