Interface SwimGoal

    • Method Detail

      • swimChance

        float swimChance()
        Gets the chance that the owning Agent will perform a "jump". The chance is limited between 0 and 1, to where the higher the chance, the more likely the entity will "jump" to appear "swimming".
        Returns:
        The chance that the owning entity will "swim"
      • setSwimChance

        void setSwimChance​(float chance)
        Sets the chance that the owning Agent will perform a "jump". The chance is limited between 0 and 1, to where the higher the chance, the more likely the entity will "jump" to appear "swimming".
        Parameters:
        chance - The chance that the entity will "swim"