I updated the https://github.com/capdevon/Archer-Game-Template project by adding a small and simple demo on swimming mechanics. I used a trigger system to identify the instant the character enters or exits the pool. The architecture of the events generated by the Triggers is inspired by a simplified version of the Unity Colliders. Triggers notify events if the location of a specific target (Spatial) is inside or outside the associated volume.
Here’s the code: