void ReadIKBone(string path) { using (StreamReader sr = new StreamReader(path, encoding)) { string line = null; while ((line = sr.ReadLine()) != null) { string[] row = line.Split(','); PMD_IK ik = new PMD_IK(); ik.effector_node_name = row[0].Trim(); ik.target_node_name = row[1].Trim(); int chain_length = int.Parse(row[2].Trim()); ik.niteration = int.Parse(row[3].Trim()); ik.weight = float.Parse(row[4].Trim()); for (int i = 5; i < row.Length; i++) { ik.chain_node_names.Add(row[i].Trim()); } iks.Add(ik); } } }
public PMD_Bone() { name = "node ja"; name_en = "node en"; position = new Vector3(0, 5, 0); parent_node_id = -1; calc_order = 0; //変形階層 kind = 0; flags_hi = (byte)0x00; //上位フラグ flags_lo = (byte)0x1B; //下位フラグ 0x01: 接続先 1:ボーンで指定 tail_node_id = -1; IK = null; }