2010 October 12 / j|d|a|v|i|s|@|c|a|r|l|e|t|o|n|.|e|d|u

Group3D

Inherits from Body3D. A body that possesses child bodies. The parent and the children act as if they're glued together; the positions and orientations of the children are relative to the parent. Nevertheless, each child is drawn with their its own color, texture, etc.

__init__(self, bodies=[])

Initializes the group with the given list of bodies.

getBodies(self)

Returns the list of bodies in the group, which the user can alter (append, pop, etc.) as desired, as long as they remain compatible with the renderer.