Syntax

dbGlueObjectToLimb(ObjectID, SecondObjectID, LimbID [, GlueMode])

Description

This command will attach the specified 3D object to a limb of another 3D object. By attaching an object to the limb of another, the objects position, rotation and scale are entirely controlled by the limb. This technique can be used to allow a robot arm to easily grab and lift an item, or allow your hero character to hold and wear a variety of items. The parameters should be specified using integer values. An additional parameter allows a specific type of glue operation:

The optional 'GlueMode' parameter can be one of the following values:

#GDK_Basic3D_GlueObject         : Glue object to a limb (default)
#GDK_Basic3D_WipeFameOrientation: Wipe out frame orientation and preserve position data
#GDK_Basic3D_WipeChildPosition  : Wipe out child object position for accurate limb placement

See Also

dbUnglueObject