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
b681ad79ce
Fix heuristic to restart route in chase()
...
We had a random chance of restarting the route to avoid getting the
chaser stuck. This didn't work properly because the rerouting code was
only triggered if `self.route.is_none()` or if the target moved
significantly, and the random chance branch only set `bearing` to `None`.
This change sets `self.route = None` to trigger rerouting.
2022-05-14 16:41:45 +01:00
ba6d1bce60
Remove unnecessary code
...
We had an unnecessary unwrap_or_else() preceded by a question mark
operator, which means that the or_else clause could never be called.
2022-05-14 16:41:45 +01:00
bf48bd5346
update toolchain to nightly-2021-12-19
2021-12-23 13:04:24 +01:00
596307c9b7
Remove unused clippy suppressions
2021-12-05 17:59:02 +00:00
36884d6919
Move rrt algorithm into its own function
2021-09-17 16:27:00 -07:00
9875a74640
Make RRT pathfinding a cfg feature
2021-09-17 16:01:20 -07:00
c2c4429750
Disable RRT pathfinding
2021-09-17 16:01:19 -07:00
7ddc229728
Initial RRT flight pathfinding
2021-09-17 16:01:19 -07:00
a612631aa4
Add comment on tuple bool field meaning in pathing
2021-08-21 15:19:12 +00:00
4ebfbdde0f
Move Specs code to own common_ecs create, put tracy and macros into common_base
2021-03-09 00:54:01 +01:00
862cd5fe49
fmt
2021-03-07 14:25:03 +00:00
7d94c3600f
New town layouts, initial progress
2021-03-07 14:25:02 +00:00
b9b36e0bf5
Merge branch 'zesterer-master-patch-28400' into 'master'
...
Fix jump routes not being pathed
See merge request veloren/veloren!1706
2021-02-28 00:41:38 +00:00
6051c06462
fmt
2021-02-27 23:21:01 +00:00
23b1df3cdd
Add basic NPC interaction and fix NPC chat spamming
2021-01-31 20:29:50 +00:00
1223519ea1
Fix jump routes not being pathed
2021-01-20 14:39:01 +00:00
ae366e03c5
Reduced downward fall of birds, Humanoid travelers no longer visit dungeons, birds only travel between dungeons
2021-01-05 01:04:01 +00:00
33e4448542
Replaced every unnecssary powf in the entire codebase with either powi or sqrt.
2020-11-24 18:28:24 -06:00
26fd40c0e3
Fmt, make clippy happy
2020-11-23 15:39:03 +00:00
de685b00b2
Improved water pathfinding
2020-11-23 10:45:01 +00:00
71b7e1ef90
Better non-climbing NPC pathfinding in rivers
2020-11-23 10:45:01 +00:00
b352ef5d55
Terrain pop-in, fixed agent pathfinding in water
2020-11-23 10:45:01 +00:00
6331ad9455
Implemented Flight
2020-11-03 22:46:07 +00:00
938039a56e
Remove spurious uses of Vox.
...
In the process, also try to address a few edge cases related to block
detection, such as adding back previously solid sprites and removing
filters that may be vestiges of earlier logic.
2020-09-26 16:30:40 +02:00
ece4a01867
Improved representation of Block for better performance, more features, and better backwards-compatibility
2020-09-20 11:46:12 +01:00
f39d1e9bb5
Use less verbose span names when the tracy feature is off
2020-09-07 00:59:16 -04:00
e37a01be9d
Sprinkle instrumentation in common crate,in particular in the ecs systems
2020-09-06 22:28:14 -04:00
37b45ba5f4
Addressed review issues
2020-08-25 11:01:17 +01:00
7af1b45d5f
Better pet pathfinding
2020-08-24 12:36:27 +01:00
50a85853e3
Fmt and clippy lints fixes
2020-08-12 21:16:14 +01:00
85ed5ad356
Updated changelog, cleaned up warnings, minor fixes
2020-08-12 21:16:11 +01:00
9329b4ce55
Added monsters to caves
2020-08-12 21:15:53 +01:00
d7ccb28ea7
Pathfinding improvements
2020-08-12 21:15:53 +01:00
d48ed42fda
Prevented NPCs running gleefully off cliffs without a second thought
2020-08-12 21:15:53 +01:00
dfecf0dad6
Massively improved pathfinding reliability
2020-08-12 21:15:53 +01:00
0bad704719
Made agents flee
2020-08-12 21:15:53 +01:00
3e5c3de2ac
Neater compass
2020-07-13 23:23:44 +01:00
cf69d0c5d8
Added minimap compass
2020-07-10 15:00:20 +01:00
951a977b2f
Improved hill path following
2020-07-10 00:43:11 +01:00
ac30fcbd0e
Commented unused but potentially useful code
2020-07-09 16:54:10 +01:00
47e413c530
Improved pathfinding tolerance and reliability
2020-07-09 16:54:10 +01:00
50fcd6c6a3
remove slowmo test mode
2020-07-05 10:00:44 -04:00
2c14b2f891
clippy fixes
2020-07-05 09:39:56 -04:00
8508b5177b
Velocity-corrected bezier pathfinding control, swimming control
2020-07-05 09:38:15 -04:00
ca9ae13527
more latitude tilt, better attack anims, addressed aesthetic concerns, deleted dead assets
2020-07-05 09:38:15 -04:00
8a0b7fd173
Smoother pathfinding for fast animals
2020-07-05 09:38:14 -04:00
177bd7a128
More tolerant pathfinding
2020-07-05 09:38:14 -04:00
950c62efc6
Suppressed all existing clippy warnings in preparation for fixes as part of #587
2020-06-10 22:01:42 +01:00
de37de7f45
Initial clippy fixes as discussed in #587
2020-06-08 21:27:51 +01:00