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; }
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); }
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)); }