Moving from HumanIK 4.0 to HumanIK 4.1

This section describes the changes that you must make in your existing code to upgrade to version 4.1 of HumanIK.

Simplified node flags

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:

In this release, only the HIKNodeLimits flag is necessary, as follows:

See Initialization.

HIKCharacterFix function removed

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.

You must remove all calls to this function from your code.