From 893dbf8a235db2b4f1fafacf90290b0821f0048c Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Fri, 4 May 2018 10:50:15 -0400 Subject: Recursively handle ferried bodies PonderingSystem now recursively ticks bodies, starting with unferried bodies at the top level, and recursively ticking their passengers. This fixes the second issue described in 8f1c4f1 -- that passengers may be ticked before their ferries, causing it to use out-of-date information about the ferry's location. --- src/systems/pondering.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/systems/pondering.h') diff --git a/src/systems/pondering.h b/src/systems/pondering.h index adc0cda..eed0d32 100644 --- a/src/systems/pondering.h +++ b/src/systems/pondering.h @@ -46,6 +46,11 @@ private: id_type groundEntity; }; + void tickBody( + id_type entity, + double dt, + const std::set& entities); + void processCollision( id_type entity, id_type collider, -- cgit 1.4.1