Search Unity

Question How to prevent the player with a third person controller to go into the water?

Discussion in 'Visual Scripting' started by Marou1, Jan 14, 2023.

  1. Marou1

    Marou1

    Joined:
    Dec 13, 2021
    Posts:
    161
    Hi,

    What would be the easiest way to prevent the player with a third person controller to go into the water?
    Knowing all the water planes are in the water layer.

    I am trying to avoid modifying the c# script.

    For example, with a navmesh, you just have to define the water area to prevent agents from going there.