improved movements of building items

This commit is contained in:
SpaceToad 2014-05-05 16:18:04 +02:00
parent 29239111ad
commit f4866fa883

View file

@ -64,9 +64,11 @@ public class BuildingItem implements IBuilder {
double size = Math.sqrt(dx * dx + dy * dy + dz * dz);
maxLifetime = size * 5.0;
maxLifetime = size * 4;
maxHeight = 5.0 + (destination.y - origin.y) / 2.0;
// maxHeight = 5.0 + (destination.y - origin.y) / 2.0;
maxHeight = size / 2;
// the below computation is an approximation of the distance to
// travel for the object. It really follows a sinus, but we compute