Best Answer
Answer by Champa42 · Feb 22, 2018 at 09:32 PM
Fixed it
The script that registers the trigger enter needs to be attached to the parking line and not some other object
Answer by Vencarii · Feb 22, 2018 at 09:14 PM
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!");
}
}
Your answer
Follow this Question
Related Questions
Enemy Trigger Colliders are triggering my player's trigger collider. Why? 1 Answer
How to detect collision of two moving characters? 1 Answer
How do I detect a collision between two objects using Bolt? 1 Answer
Problem With Triggers? 0 Answers
Calling "OnTriggerEnter" when a parent object has a rigidbody 0 Answers