Prepare NavigationServer for process() and physics_process() split

Prepares the NavigationServer API for a split of its functionality between frame process() and stepped physics_process().
This commit is contained in:
smix8
2025-03-31 22:32:59 +02:00
parent c7ea8614d7
commit 16fd7b6ae1
15 changed files with 131 additions and 103 deletions

View File

@@ -532,10 +532,8 @@ void NavMap2D::compute_single_avoidance_step(uint32_t p_index, NavAgent2D **p_ag
(*(p_agent + p_index))->update();
}
void NavMap2D::step(real_t p_deltatime) {
deltatime = p_deltatime;
rvo_simulation.setTimeStep(float(deltatime));
void NavMap2D::step(double p_delta_time) {
rvo_simulation.setTimeStep(float(p_delta_time));
if (active_avoidance_agents.size() > 0) {
if (use_threads && avoidance_use_multiple_threads) {