moveUpOnce method
Implementation
void moveUpOnce({double? speed}) {
_lastSpeed = speed ?? this.speed;
setVelocityAxis(y: -_lastSpeed);
onApplyDisplacement(dtUpdate);
setVelocityAxis(y: 0);
}
void moveUpOnce({double? speed}) {
_lastSpeed = speed ?? this.speed;
setVelocityAxis(y: -_lastSpeed);
onApplyDisplacement(dtUpdate);
setVelocityAxis(y: 0);
}