- Home /
Sphere Colliders on parent object and child object
I have a gameobject which hierarchy as ZombieGO > HeadGO, BodyGO, Armature. Now what i'm working on is to have sphere trigger colliders for attack range and sight range (large one is for sight range and small is for attack range),small one is attached on the main parent object and the big one attached on the BodyGO...
now i have attached scripts for trigger collider events to both ZombieGO(parent) and BodyGO(child), my parentGO is triggering right when the BodyGO triggers, i dont know why...could it be because i have attached them inversely of their hierarchy?
please help!!
Thank You.
sorry guyz, i have solved, it was because of the hierarchy...one must put the larger collider on the parent game object
Doh, ninja'd me there with your own answer....lol
;)
Answer by Digital-Phantom · Apr 15, 2015 at 02:50 PM
smaller on the child object and you should be good to go
:)
Your answer
Follow this Question
Related Questions
How to pick up a game object using E 4 Answers
How to get an AOE attack to deal damage to more than one enemy at a time in 2D? 0 Answers
How to change this.gameObject.tag? 2 Answers
Efficiently changing other object's variables via triggers? 1 Answer
OnTriggerEnter triggers twice when changing the parent of a gameObject inside of a collider. 1 Answer