correctPositionFromCollision method
Implementation
@override
void correctPositionFromCollision(Vector2 position) {
super.correctPositionFromCollision(position);
if (this is Jumper) {
if ((this is BlockMovementCollision)) {
final isV = (this as BlockMovementCollision)
.lastCollisionData
?.direction
.isVertical ==
true;
if (isV) {
return;
}
}
}
_stop();
}