Does such a function exist?
Like the addObject() function, I’m looking for a way to add groups. I have to objects grouped together on a different layer. These have a Rigid Body Joint Constraint applied to them and addObject() function does not (seem to) let me keep this constraint.
Maybe there is another way of achieving this? I could not find an addObject() function although I’m not great at navigating the bge api.
Thanks for any help.
As Monster has pointed out there is no groups in the bge, however as he also points out I can spawn an object and use Python to set up the rigid body joints. After a bit of trial and error I was able to get the settings more or less how I like them.
This webpage was helpfull. The creator includes an example blend to experiment with.
For Limiting the rotation you need to use the setParam() function.
The example above is with the constraint type 12, but it also works with constraint type 2. Axis rotation is described with radians (something I had to find out about).