In my game I have a large cube that represents the player. It can bump into smaller cubes or spawn smaller cubes that are supposed to ‘stick’ to it. That is, they move in the X and Y axis and rotate by the same amount as the player cube. Sort of like this, if the cubes were touching and attached.
So for example, it might have a small cube half the size of the big cube, stuck to its left side. As the player cube rotates or moves the small cube should stay there.
I am pretty new to Unity, but I looked at combining the meshes, but I need access to the hit data for each piece separately so that won’t work.
Is there a simple way to do this, without keep a list of all things the player has stuck to him and moving them all separately? Even a link to something relevant would be greatly appreciated, since I am new enough that I don’t even know what to google. Thanks in advance!