I need to detect if the object that has collided with my player is a bullet.
Then I can change the health and so on.
void OnCollisionEnter(Collision collision) {
Debug.Log("Collision");
}
This works well. Is there any way I can get both objects participating in a collision?