Hi Sorry if this has been posted before but I was unable to find a clear cut answer as to how this is achieved.
I have a zombie prefab which has destructible components ie… Head, Leg, Arm , Body
Now I can place Colliders on each body part but the parent Zombie has no collider or rigidbody.
And when I click on a zombie body part none of the colliders detect a collision?
This is a game similar to House of the Dead where you can “shoot” the zombie by clicking on them
So how do I register the Raycast hitting a body part when the colliders are children of the parent prefab??
I managed to find out what was happening…
The actual collider was being hit but the fact that the animated zombie walks the collider does not animate too so it ended up being behind the zombie prefab…
I suppose the next challenge is to find out how to link an animation with a collider so that the collider moves exactly the same as the prefab.