コード例 #1
0
ファイル: xxEditor.cs プロジェクト: kkdevs/sb3u
        public void SetBoneSRT(int meshId, int boneId, double sX, double sY, double sZ, double rX, double rY, double rZ, double tX, double tY, double tZ)
        {
            xxBone bone = Meshes[meshId].Mesh.BoneList[boneId];

            bone.Matrix = FbxUtility.SRTToMatrix(new Vector3((float)sX, (float)sY, (float)sZ), new Vector3((float)rX, (float)rY, (float)rZ), new Vector3((float)tX, (float)tY, (float)tZ));
            Changed     = true;
        }
コード例 #2
0
        public static void dataGridViewSRT_CellValueChanged(object sender, DataGridViewCellEventArgs e)
        {
            DataGridView viewSRT = (DataGridView)sender;

            Vector3[] srt = GetSRT(viewSRT);
            Matrix    mat = FbxUtility.SRTToMatrix(srt[0], srt[1], srt[2]);

            LoadMatrix(mat, null, (DataGridView)viewSRT.Tag);
        }
コード例 #3
0
 public void SetFrameSRT(int id, double sX, double sY, double sZ, double rX, double rY, double rZ, double tX, double tY, double tZ)
 {
     Frames[id].Matrix = FbxUtility.SRTToMatrix(new Vector3((float)sX, (float)sY, (float)sZ), new Vector3((float)rX, (float)rY, (float)rZ), new Vector3((float)tX, (float)tY, (float)tZ));
 }