SteamWar/BauSystem
Archiviert
13
0

TNTTracer #70

Manuell gemergt
Lixfel hat 12 Commits von TNTTracer nach master 2020-07-19 08:21:30 +02:00 zusammengeführt
Nur Änderungen aus Commit 2615c8a77c werden angezeigt - Alle Commits anzeigen

Datei anzeigen

@ -126,13 +126,13 @@ class TNTTracer_15 {
traceCache.setUpdatePoints(accumulatePositions(floats, px, py, pz));
}
private static float[] accumulatePositions(float[] floatss, float px, float py, float pz) {
private static float[] accumulatePositions(float[] floats, float px, float py, float pz) {
LinkedList<Float> linkedList = new LinkedList<>();
for (int i = 0; i < floatss.length; i += 3) {
float x = floatss[i + 0];
float y = floatss[i + 1];
float z = floatss[i + 2];
for (int i = 0; i < floats.length; i += 3) {
float x = floats[i + 0];
float y = floats[i + 1];
float z = floats[i + 2];
if (square(x - px) + square(y + 0.49F - py) + square(z - pz) > showRadius) continue;