For leveraging the swimming feature of the RPGMotor, three things have to be considered:

  1. You need a water game object which has the “Water” script/component assigned
  2. This water game object must have a box collider that acts as a trigger attached
  3. The variable “Swimming Start Height” of the RPGMotor controls at which local height the character should start to swim (visualized by a small blue plane when gizmos are enabled)

Check out the prefab “Water” in folder Prefabs for reference.

Categories: FAQ