Makes the triangle lines connect properly to their base

This commit is contained in:
Kristian Knarvik 2023-07-04 15:15:59 +02:00
parent e528ce96b5
commit 83c4771a65

View File

@ -149,7 +149,7 @@ public class ParticleSpawner implements Runnable {
}
Location topLocation = location.clone().add(pyramidVectors[0]);
for (double x = 0; x <= 1; x += particleDensity) {
for (double x = 0; x <= 1.2; x += particleDensity) {
spawnParticle(world, topLocation.clone().add(pyramidVectors[1].clone().multiply(x)));
spawnParticle(world, topLocation.clone().add(pyramidVectors[2].clone().multiply(x)));
spawnParticle(world, topLocation.clone().add(pyramidVectors[3].clone().multiply(x)));