You can use the following functions to set or retrieve data for a single Node in an HIKCharacterState.
The functions listed below follow the naming conventions outlined under Data Representations and Function Variants. For additional details, see the description of each function in the API Reference.
Functions that use separate number arrays for translation, quaternion rotation and scaling values:
Functions that use transform matrices:
The following code uses the HIKSetNodeStateTQSfv() and HIKGetNodeStateTQSfv() functions to set the translation, quaternion rotation and scaling of the right hand Node, and to retrieve the same data for the left hand Node.
HIKSetNodeStateTQSfv(MyCharacter, MyCharState, RightHandNodeId, myModel.GetTranslation(RightHandNodeId) myModel.GetRotation(RightHandNodeId) myModel.GetScale(RightHandNodeId)); ... const float trans[4]; const float rota[4]; const float scale[4]; HIKGetNodeStateTQSfv (MyCharacter, MyCharState, LeftHandNodeId, trans, rota, scale);