hasMoved method
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;
}
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;
}