Search Unity

Question Two objects with Character Controller components run over each other

Discussion in 'Physics' started by redfox601, Mar 20, 2023.

  1. redfox601

    redfox601

    Joined:
    Jan 15, 2022
    Posts:
    17
    Hi everyone!
    There are two Gameobjects. Each has a Character Controller component. When approaching, one begins to walk on top of the other. But that's not what I need. The options that suit me are:
    1. An object stops when it collides with another object.
    2. The object pushes another object.
    3. The object passes through another object.
    How to achieve these options and make sure that the object does not climb on another?