How to make a trigger box collider SOLID (with physics)?

Hello. I’m trying to make a trigger gameobject that applies physics. I want my bullet to bounce of the target and I want to count how many times I’ve hit the target to keep score.

At the moment I have two box colliders at the exact same location, one for the trigger, one for the physics. Everything works except the two box colliders always collide once at the start and therefore add score, but i only want to add score if the bullet hits the target. Below is my code so far. After the code I’ll explain what I’ve done so far. My real question is: how can I make a trigger gameobject that is solid (with physics)?

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

public class TargetCollision : MonoBehaviour
{
    [SerializeField] int score;
    private bool hasCollided = false;
    [SerializeField] BoxCollider target;
    [SerializeField] BoxCollider trigger;

    private void Start()
    {
        score = 0;
        Physics.IgnoreCollision(target, trigger, true);
        Physics.IgnoreLayerCollision(9, 10);
    }

    private void OnTriggerEnter(Collider other)
    {
        if (gameObject.CompareTag("Target"))
        {
            if (!hasCollided)
            {
                hasCollided = true;
                score = score + 5;
                Debug.Log("5 points! " + score);
            }
               
        }
    }

    private void LateUpdate()
    {
        hasCollided = false;
    }
}

What I’ve tried. I’ve put the two colliders from the shooting target at two different layers and unchecked them in the project settings/physics tab. I’ve used both lines of code to ignore collisions between objects or layers (as you can see in the code). I’ve tried to write code that also checks if the “other” is my bullet, but this somehow breaks the score system.

@Neooz All you have to do is put a Mesh Collider on the thing that you want to shoot at and put a Rigidbody as well as a Mesh Collider on the bullet. This should work, but contact me if you have any problems!