summary refs log tree commit diff stats
path: root/src/systems/pondering.h
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2018-05-04 00:08:35 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2018-05-09 17:59:13 -0400
commit69c04dfb6c49e7b2d34a6699c071f037880fbde5 (patch)
tree2cab984cb5723dfdda00bd2f4062ebaac0222be1 /src/systems/pondering.h
parent83f51a6892629921b4cc482b986656a0a5cc5f6a (diff)
downloadtherapy-69c04dfb6c49e7b2d34a6699c071f037880fbde5.tar.gz
therapy-69c04dfb6c49e7b2d34a6699c071f037880fbde5.tar.bz2
therapy-69c04dfb6c49e7b2d34a6699c071f037880fbde5.zip
Added ferrying (buggy)
A freefalling body is considered to be "ferried" if it is grounded by another body (not a map). Its location is then dependent on the ferry's location; in this way, the ferry carries the passenger around.

This implementation is kind of buggy currently: first of all, ferrying does not work vertically upward, because the ferry will consider the passenger to be a wall and will not continue moving upward.

Second, ferries are not processed before passengers, so passengers can move in a physics tick using the knowledge of a ferry's location before it moves in that tick.

Third, if the transform coordinates are set by any system other than the PonderingSystem, the relative coordinates to the ferry will not be updated and the body will not be unferried if necessary.

This is still a cool commit because, three years later, we have finally overcome the issue that stopped development on the original branch in 2015.
Diffstat (limited to 'src/systems/pondering.h')
-rw-r--r--src/systems/pondering.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/systems/pondering.h b/src/systems/pondering.h index aa430db..b195814 100644 --- a/src/systems/pondering.h +++ b/src/systems/pondering.h
@@ -29,6 +29,7 @@ private:
29 bool adjacentlyWarping = false; 29 bool adjacentlyWarping = false;
30 Direction adjWarpDir; 30 Direction adjWarpDir;
31 size_t adjWarpMapId; 31 size_t adjWarpMapId;
32 id_type groundEntity;
32 }; 33 };
33 34
34 void processCollision( 35 void processCollision(