Solves the IK chain and applies rotations to bones. Should be called each frame after animation values are set.