RenderWare V2.1

Previous Page Index Next Page

RwClump *

RwAddChildToClump(RwClump *parent, RwClump *child);

Description

Makes the second clump a child of the first. If child is already a child of another clump, it will be removed from that clump’s list of children before being added to parent.

Arguments

parent Pointer to the parent clump.

child Pointer to the child clump.

Return Value

The argument parent if successful, and NULL otherwise.

Comments

After addition, the child’s modeling and joint (articulation) transformations will be relative to those of its new parent.

See Also

RwGetClumpNumChildren()

RwGetClumpParent()

RwGetFirstChildClump()

RwGetNextClump()

RwRemoveChildFromClump()