Can someone please explain why OnTriggerEnter is not being called when I hit the Parking Line Collider ?
Remove “Is Trigger” from your Lambo object.
I would tag the Lambo as “Lambo” and add this to the Parking Line script:
void OnTriggerEnter(Collider other) {
if (other.tag == "Lambo") {
Debug.Log("Parking Line hit by Lambo!");
}
}
Fixed it
The script that registers the trigger enter needs to be attached to the parking line and not some other object