Trigger code is doing nothing

Hello!

Sorry for the vague title, couldn’t decide how to phrase my problem.
The following code prints nothing when LasarCollider comes in contact with an object whose parent is Asteroids.

Please help, I have been stuck on this all day.

private void OnTriggerEnter(Collider LasarCollider) {
if (LasarCollider.transform.parent.tag == “Asteroids”) {
print(“hi”);
}
}

Notes: Trigger events are only sent if one of the Colliders also has a Rigidbody attached.

Please see here more !

Either you have a typo in your function name, or you don’t have a rigidbody or you are mixing 2d with 3d physics…