Upload files to "/"

This commit is contained in:
2026-06-01 09:00:25 +00:00
parent 30b3ef72a4
commit 176395b9cd
5 changed files with 476 additions and 12 deletions

View File

@@ -230,20 +230,20 @@ public class PathExecutor {
// ── Oblicz mnożnik prędkości ──────────────────────────────────────────
float speedMult = 1.0f;
// 1. Hamowanie przed celem (ostatnie N bloków)
// 1. Hamowanie przed celem (ostatnie N bloków)z
boolean isLastWaypoint = (waypointIndex == path.size() - 1);
if (flying) {
double distToTarget = playerPos.distanceTo(targetPos);
if (isLastWaypoint) {
// if (flying) {
//double distToTarget = playerPos.distanceTo(targetPos);
// if (isLastWaypoint) {
// Hamuj płynnie na ostatnich 6 blokach
speedMult *= (float) Math.min(1.0, distToTarget / 6.0);
}
} else {
double distToTarget = horizontalDist(playerPos, targetPos);
if (isLastWaypoint) {
speedMult *= (float) Math.min(1.0, distToTarget / 4.0);
}
}
//speedMult *= (float) Math.min(1.0, distToTarget / 0.1);
// }
//} else {
//double distToTarget = horizontalDist(playerPos, targetPos);
//if (isLastWaypoint) {
//speedMult *= (float) Math.min(1.0, distToTarget / 4.0);
//}
//}
// 2. Hamowanie przed zakrętem — patrz na kąt do NASTĘPNEGO waypointu
if (waypointIndex + 1 < path.size()) {