Glue objects

Typically: "How do I... ", "How can I... " questions
Post Reply
sampits
Posts: 20
Joined: 11 Feb 2020, 11:15

Glue objects

Post by sampits »

Hello, i´m doing a project where i create a frame of a table with different objects(cuboids)as seen in the image:https://gyazo.com/9d6b4e8d793ea978406097eeab3193a4

Now after i create this frame i want to pick it up all togheter but obviously they are all diferent objects so i can´t do that.

Is there a way for me to link/glue then so when i pick on the center everything come togheter?

fferri
Posts: 1297
Joined: 09 Sep 2013, 19:28

Re: Glue objects

Post by fferri »

Shapes can be grouped:
Two or more simple shapes or compound shapes can however be grouped ([Menu bar --> Edit --> Grouping/Merging --> Group selected shapes]) or ungrouped ([Menu bar --> Edit --> Grouping/Merging --> Ungroup selected shapes]).

sampits
Posts: 20
Joined: 11 Feb 2020, 11:15

Re: Glue objects

Post by sampits »

fferri wrote: 03 Mar 2020, 15:46 Shapes can be grouped:
Two or more simple shapes or compound shapes can however be grouped ([Menu bar --> Edit --> Grouping/Merging --> Group selected shapes]) or ungrouped ([Menu bar --> Edit --> Grouping/Merging --> Ungroup selected shapes]).
I only create the shapes after the simulation starts, is there a way to group the objects mid simulation without my interferance( some kind of function that groups object)?

fferri
Posts: 1297
Joined: 09 Sep 2013, 19:28

Re: Glue objects

Post by fferri »

Yes: sim.groupShapes

Cheers

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

Re: Glue objects

Post by coppelia »

otherwise you can always attach them together via:
  • simple parent-child relationship if the shapes are not dynamically enabled. You can then manipulate all shapes together by manipulating the parent of them
  • via force/torque sensors if shapes are dynamically enabled
Cheers

sampits
Posts: 20
Joined: 11 Feb 2020, 11:15

Re: Glue objects

Post by sampits »

Its done thank you :)
used the sim.groupShapes

Post Reply