- Home /
How to detect collision on child, if parent has RigidBody?
I have an object A, what has B and C as children. A has RigidBody and using gravity. B and C has collider too for Mouse... event detection. The problem is, that mouse events do not fire on B and C even if OnTrigger is set on collider.
I removed RigidBody from A, and B and C fired the events. B and C can not have RigidBody - the stuff would fall apart (it is a mesh with multiple parts). I even tried to put in D as child of A with RigidBody, with colliders same dimensions as the whole mesh, but I had trouble updating the positions/rotations.
I guess, that after trying for some hours it will not hurt to ... ask. So if there is someone with some experience with this, please help me out. If there are further details needed, ask.
Thanks in advance: Péter