Reworking getTargetMatrix() function to work with rigged and non-rigged elements.