Dive collide

Right now the character jumps and dives, but I need to figure out when he hits a wall or the ground. I can’t check for any collider because I don’t want the dive to stop if he hits a small object. Without tags, can anyone think of soem good ways to find walls?

void OncontrollerColliderHit(ControllerColliderHit hit)
{
if(hit.collider.gameObject.name == “Wall”)
{
DoSomething()
}
}

OR

RaycastHit hit;

void Update()
{
    if(Physics.Raycast(transform.position, transform.forward, out hit, 1f)
{
    if(hit.collider.gameObject.name == "Wall")
    {
        DoSomething();
    }
}
}

Not really understanding your question, but try checking out the Script Reference for Raycast and ControllerColliderHit

Look at other games and see how then do it. Looking at something like call of duty, where you can dive, if you dive at a wall, you literally collide with it and slide down the wall, just make it so that when you dive, if you have an animation, you should add a collider around the diving animation object so that if it dives into a wall, it will slide down.