Skip to main content
Skip to main content

setShapeBones

setShapeBones

Description

Set the bones of the shape given the new root node. The hierarchy of the new bones must be mostly the same as for the currently set bones. Additional children after the used bones are allowed. Bones are matched by node indices and not by name. The new root newRootBoneId must match with oldRootBoneId or the currently assigned root (lowest common root node of all bones) if oldRootBoneId is 0.

Definition

setShapeBones(entityId shapeId, entityId newRootBoneId, entityId oldRootBoneId, boolean? keepBindPoses)

Arguments

entityIdshapeIdshapeId
entityIdnewRootBoneIdThe roof the new skeleton
entityIdoldRootBoneIdThe root of the currently assigned skeleton. If 0, the lowest common root node of the currently assigned bones is used
boolean?keepBindPosesIf true, the bind poses of the current bones are kept, otherwise the new bones are assumed to be in the bind pose [optional]

Return Values

booleansuccess