Hey
I have a little problem with 2 objects. I have 2 boxes, there has a parent with rigidbody(No gravity, and non-kinematic), a mesh and a script to debug the trigger, and a child with a collider, where IsTrigger is set to true.
But then i to box collide is only the one of the box there get a message.
The script:
public GameObject Hitting;
void OnTriggerEnter(Collider collisionObject)
{
Hitting = collisionObject.gameObject;
Debug.Log("T: "+this.name+" was hitted by: "+collisionObject.gameObject.name);
}
If i move the collider to the parent i works.
Any solution for this?
Mathias