feat: add bounding box for ItemEntity
@@ -3,6 +3,7 @@ package nullengine.entity.item;
import nullengine.entity.BaseEntity;
import nullengine.item.ItemStack;
import nullengine.world.World;
+import org.joml.AABBd;
public class ItemEntity extends BaseEntity {
@@ -10,6 +11,7 @@ public class ItemEntity extends BaseEntity {
public ItemEntity(int id, World world, double x, double y, double z) {
super(id, world, x, y, z);
+ setBoundingBox(new AABBd(-.125, 0, -.125, .125, .125, .125));
}
public ItemStack getItemStack() {
