IrrGetMS3DJointNode

section index

## NAME

IrrGetMS3DJointNode - Get the Joint as Node

## SYNOPSIS

*jointNode.l = IrrGetMS3DJointNode(*node.l, JointName.s)

## INPUTS

*node.l | - | pointer to a Scene Node
JointName.s | - | Name of the Joint

## FUNCTION

Returns a pointer to a child node, wich has the same transformation as the corresponding joint, if the mesh in this scene node is a ms3d mesh. Otherwise 0 is returned. With this method it is possible to attach scene nodes to joints more easily. In this way, it is for example possible to attach a weapon to the left hand of an animated model. This example shows how.

## EXAMPLE

       *handNode.l = IrrGetMS3DJointNode(*myNode, "LeftHand")
       IrrAddChildToParent(*weaponNode.l,*handNode.l)

## RESULT

Returns a pointer to the scene node which represents the joint with the specified name. Returns 0 if the contained mesh is not an ms3d mesh or the name of the joint could not be found. NOTE Please note that the SceneNode returned by this method may not exist before this call and is created by it.