GetValueMatrixArray() public method

public GetValueMatrixArray ( int count ) : System.Matrix[]
count int
return System.Matrix[]
示例#1
0
        /// <summary>
        /// Gets a copy of the current skinning bone transform matrices.
        /// </summary>
        public Matrix4x4[] GetBoneTransforms(int count)
        {
            if (count <= 0 || count > MaxBones)
            {
                throw new ArgumentOutOfRangeException("count");
            }

            Matrix4x4[] bones = bonesParam.GetValueMatrixArray(count);

            // Convert matrices from 43 to 44 format.
            for (int i = 0; i < bones.Length; i++)
            {
                bones[i].M44 = 1;
            }

            return(bones);
        }