Principles of the System #
The swimming system consists of:
- Swimming
- Diving
- Breathing
It alters some variables in the extended movement basic component when swimming and takes over movement handling. The character moves towards the forward of the camera instead of the character.
On initialization, a breathing point is created to determine if the character is underwater, useful for removing oxygen in an attribute system.
Swimming animations and an animation blueprint with correct logic are included.