BGE proposal: add attribute to change the Collision Group/Mask to the KX_GameObject.

The idea is add an attribute for change the Collision Group/Mask of a game object in realtime with python.

I’m not sure how it should work, be better to use a function or an attribute? what king of values(int, list, etc) could use to set?

May be better an attribute for example:
object.collisionGroup = value
object.collisionMask = value

Maybe the value would be a list? for example: [True, False, False, False, False, False, False, False]

Is there a atributte for change the state of the logic, but is hard to use, or at least for me.

What do you think?

I’m working on a patch for this.
Needs some final changes before it can be reviewed
https://developer.blender.org/T33710

That is good to hear it. I hope that when you finish it.