I updated the GitHub - capdevon/Archer-Game-Template: A Third Person Shooter demo made with jMonkeyEngine build with v3.3.2-stable. Gradle Project 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: