Object inside another

Hi guys,

I was wondering if there is anything which i can use for testing if an object is inside another one. If the object is inside the other one, I want them becoming parent and child…

I’m going through the manual now… any help?

Thanks,
GC.

What are the shapes of the objects?

If you have the objects size you could just check distance between objects with Vector3.distance. You could also use triggers to detect when they are sharing the same space.

well basically my objects are:

boxes, a set of shelves inside a cabinet… and 3D reconstructed vases.

You could use OnTriggerEnter with trigger colliders.