I have two gameObjects, g1 and g2. g1 has a rigidbody and collider, which represents the character who moves around. g2 has a rigidbody and collider as well, and operates as a seperate object for most of the game. However, if g1 ‘picks up’ g2, I want g2 to move along with g1 as if it is a child, so I make it a child of g1 and set the rigidbody in g2 to kinematic, so that the g2 object moves around according to the controller in g1. However, the collider in g2 now doesn’t work, and the ‘picked up’ object can pass through walls and such. How can I make both colliders use g1’s rigidbody when the object has been ‘picked up’?
It’s because it’s set to kinematic. You can try using a distance joint or code to keep it in the correct place instead and that should keep its collider working.