Difference between "Merge" & "Group"

Typically: "How do I... ", "How can I... " questions
Post Reply
Elez
Posts: 32
Joined: 11 Oct 2014, 17:29

Difference between "Merge" & "Group"

Post by Elez »

I have a question:

Which is the difference between merging and grouping two pieces?

Cheers.

coppelia
Site Admin
Posts: 10366
Joined: 14 Dec 2012, 00:25

Re: Difference between "Merge" & "Group"

Post by coppelia »

Hello,
  • when you merge two shapes, you obtain a simple shape with a single color and attributes. Two merged shapes can not always be divided (unmerged) to restore the initial state.
  • when you group two shapes, you obtain a grouped shape with different colors and attributes. You can always ungroup a grouped shape to restore the initial state.
Cheers

Matthew Qi
Posts: 19
Joined: 31 Aug 2017, 02:11

Re: Difference between "Merge" & "Group"

Post by Matthew Qi »

coppelia wrote:Hello,
  • when you merge two shapes, you obtain a simple shape with a single color and attributes. Two merged shapes can not always be divided (unmerged) to restore the initial state.
  • when you group two shapes, you obtain a grouped shape with different colors and attributes. You can always ungroup a grouped shape to restore the initial state.
Cheers
Hi,
Are there any other differences between "Merge" & "Group", such as simulation
Thanks

coppelia
Site Admin
Posts: 10366
Joined: 14 Dec 2012, 00:25

Re: Difference between "Merge" & "Group"

Post by coppelia »

Yes. When you merge two shapes, the result is a single shape. And this is also how the physics engine will see that merged shape: as a single shape.
Imagine two spheres that are pure shapes (i.e. primitive shapes). If you group them, the physics engine will still know it is dealing with two spheres and can optimize calculations for the spheres. If you merge the two spheres, the physics engine will not recognize the spheres anymore, and will simply handle them as a polygon soup, which is the worst for a physics engine: simulation stability will be bad, and calculation times high.

Cheers

Post Reply