Upload files to "/"
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user