Hi,
I have an enemy with a child. that child has a sphere collider of radius 10 and a script attached to it that sets a bool on true in the parent’s script on collision with the player.
if my player enters the collider of the child object, nothing happens… (even though the script with the OnCollsion is on this object)
if my player goes through the capsule collider of my enemy… then the code sets off…
(this object does not have the script attached to it…)
I don’t understand why the collision registers on the parent object’s collider instead of the child because the script with the OnCollision is on the child object.