Hi everyone, I’m making a istrometic game like brawl stars and I have a small error, and kinda silly. When my player shoots, it shoots a sphere and the sphere doesn’t collide with anything, not with the cubes i’ve set in the map and not with other players i’ve placed to test. Why is this? It has a sphere collider and the cubes also have colliders as well? Here is the code as well!
private void OnCollisionEnter(Collision collision)
{
Destroy(this.gameObject);
}
else
{
Destroy(this.gameObject);
}
}
Would really appreciate for some help!