Detect collision in circle and destroy other car unity

Options

Hi everyone

I am using photon to make car game

But I am stack in on thing

I want if the player 1 is in circle and the other are outside the circle then the outside players destroy and the circle player won..


I dont understand hows it possible

Answers

  • DarkLouis
    Options

    Hum...

    You can use ;

    private void OnTriggerEnter(Collider other) {
    
    }
    

    To check if you are in the circle

    Ask me if you have another question