hollow cone collider has no end caps

Hi
I cannot detect a collision, only if another object touches the cone wall,
the goal is if an object passes the cone and does not touch it it must not have “is Trigger” enable collision

Hi @ marwabengadem , First of all make sure each object have collider to trigger it when they collide.
Another important point is that when you use OnTriggerEnter Method you should check the “isTrigger” Boolean on your collider and when you want to detect collision with OnCollision Method you should make sure that the “isTrigger” Boolean is OFF. this is the condition for it and it should work.

thank you , i have problem with colider cone , the colider mesh is not detect as hollow cone, but like a simple cone

i want a detection if only other object hit the mesh cone that i create

i dont know if you can understand me :confused:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class colider : MonoBehaviour
{

private void OnTriggerEnter(Collider other)
{
    Debug.Log("hit detected");
    GetComponent<Renderer>().material.color = Color.blue;
}

}