Hi Everybody,
I need to put two game objects together when they collide. So I have a player whith the only one script attached to. Then I have many Cubes tagged “Cube”. When cube1 touches cube2 I need cube2 to become a child of cube1 with rigidbody disabled on cube2.
How do I approach it?
What part are you having trouble with? Can you disable a rigidbody (isKinematic)? Can you give something a parent (easy)? Check for a collision (SMBL wrote that)? Worried about when 2 pairs of objects collide? Worried about "who wins" so they don't each try to become children of the other? It seems like this is still a design problem. Not to the "how do I do X" stage yet.
– Owen-Reynolds