GetValueMatrixArray() 공개 메소드

public GetValueMatrixArray ( int count ) : System.Matrix[]
count int
리턴 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);
        }