Object_GlueToAnimBone



Object_GlueToAnimBone ObjectID, pAnimBone, Mode

Description

Attaches an object to the specified AnimBone in a similar manner to dbpro's Glue Object To Limb. When AnimObject_Update() is called, glued objects inherit their world matrices from the AnimBones to which they are attached. This involves directly overwriting the object's internal world matrix, and means the Object Angle ?() and Object Scale ?() commands should no longer be expected return the correct values. Glued object transforms should be read from their parent AnimBone instead.

Parameters

ObjectIDINTEGERThe Object which is being glued
pAnimBoneINTEGERThe AnimBone to which the object is being glued
ModeINTEGER0 to directly use bone's world matrix, 1 to use bone world position/rotation only


AnimBone Commands
jGpuSkin Command Index
jGpuSkin Main