From 76272a7fc2ffbf28016a5b65ccfbb375e829719f Mon Sep 17 00:00:00 2001 From: yuni Date: Tue, 11 Jun 2024 00:05:03 +0200 Subject: [PATCH] add "target_velocity" var to handle_wants_maxvelocity() --- src/actor.rs | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/src/actor.rs b/src/actor.rs index ed94544..483baeb 100644 --- a/src/actor.rs +++ b/src/actor.rs @@ -545,25 +545,32 @@ fn handle_wants_maxrotation( } } +/// Slows down NPC's movement until they reach their target velocity. fn handle_wants_maxvelocity( time: Res