veloren/common
Hugo Peixoto 74d4e4f45e Fix path finding calculation of starting point
When a chaser's route finishes calculating, the chaser may already be a
few blocks away from the starting position, thanks to movement inertia.
The path finding code finds the point along the route closest to the
chaser's position.

This calculation only considered the xy coordinates when finding the
closest point. This caused issues whenever the calculated route goes
below the chaser's position (for example, when the chaser is on top of a
bridge and the route circled around to go under the bridge). In this
case, there was a chance that the closest point was the one below the
bridge. This caused the chaser to try to move directly to a directly
inaccessible block.

The fix was to remove the xy() filter so that the closest point
algorithm also considered the z coordinate.
2022-05-14 16:41:45 +01:00
..
assets Upped default LoD distance 2022-05-10 17:12:12 +01:00
base update toolchain to nightly-2022-04-25 2022-05-03 15:22:28 +02:00
benches use criterion groups and fix tracing to much on wgpu 2021-06-03 22:37:17 +02:00
ecs Move Veloren to 2021 edition 2022-01-26 16:46:40 +02:00
frontend Small logging filter directives refactor including removing: "ignoring ``: invalid filter directive"message that always appeared when using RUST_LOG env var 2022-03-13 01:37:52 -05:00
net Added LoD distance setting 2022-05-10 12:40:06 +01:00
src Fix path finding calculation of starting point 2022-05-14 16:41:45 +01:00
state Change outcomes to eventbus 2022-05-09 19:58:13 +00:00
systems Change outcomes to eventbus 2022-05-09 19:58:13 +00:00
build.rs use bg_main.jpg instead of bg_main.png 2021-06-18 20:41:18 +03:00
Cargo.toml switch to upstream vek again 2022-04-28 09:10:55 +02:00