I am trying to detect a collision between a capsule collider and a sphere collider with this code but it does not work.
void OnCollisionEnter(Collision other)
{
if (other.transform.tag == "fprojectile")
{
Debug.Log("Success");
}
}
What’s wrong and how can I fix it?