The docs mention “group” related to physics but not how to create a group of object like you can manually with objects from the library.
I dynamically created group of Cuboids in JavaScript and placed them together. I want be able to manipulate them as a group but I can’t find any way to do that??
Basically Group is a special object with 0 size and mass and enabled physics. When you form a group in CoSpaces editor you basically create one such item and attach selected items to it.
There is no class Group in the documentation since there is no public API for it, so you cannot create a group from the script.
But one can get a similar functionally attaching all objects to a single parent, though in this case the parent will have a mass and size (but can be set invisible), which would make it behave a different in some scenarios compared to the Group made via the editor.