}
private static Vector3d calcOffset(ForgeDirection dir, BoundingBox bounds) {
Vector3d res = new Vector3d();
Vector3d center = bounds.getCenter();
Axis axis = Offsets.getAxisForDir(dir);
if(axis == Axis.X) {
res.set(0, center.y - REF_TRANS.y, center.z - REF_TRANS.z);
} else if(axis == Axis.Y) {
res.set(center.x - REF_TRANS.x, 0, center.z - REF_TRANS.z);
} else if(axis == Axis.Z) {