This section describes the changes that you must make in your existing code to upgrade to version 4.1 of HumanIK.
When creating a Character Definition that contains parent offsets or Degrees of Freedom for one or more Nodes, it is no longer necessary to concatenate the HIKNodeParentOffset or HIKNodeLimits flag with the HIKNodeUsed flag. The HIKNodeParentOffset and HIKNodeLimits flags may be used on their own. They will automatically indicate that the Node is to be used.
For example, in previous releases, the following line of code assigned Degrees of Freedom for the right shoulder Node:
def.mUsedNodes[RightShoulderNodeId] = HIKNodeUsed | HIKNodeLimits;
In this release, only the HIKNodeLimits flag is necessary, as follows:
def.mUsedNodes[RightShoulderNodeId] = HIKNodeLimits;
See Initialization.
In previous releases of HumanIK, HIK Character objects contained an internal pointer. Any time you moved an HIK Character to a different memory location, you therefore needed to update the pointer through a call to the HIKCharacterFix() function. In this release, the pointer has been removed. The HIKCharacterFix() function is therefore no longer necessary, so the function has been removed as well.