hasMoved method

bool hasMoved(
  1. T hitbox
)

Implementation

bool hasMoved(T hitbox) {
  final lastPos = _oldPositionByItem[hitbox as ShapeHitbox];
  if (lastPos == null) {
    return true;
  }
  return lastPos.min != hitbox.aabb.min || lastPos.max == hitbox.aabb.max;
}