private PMXFormat.IK_Link ReadIkLink() { PMXFormat.IK_Link result = new PMXFormat.IK_Link(); result.target_bone_index = CastIntRead(binary_reader_, format_.header.boneIndexSize); result.angle_limit = binary_reader_.ReadByte(); if (result.angle_limit == 1) { result.lower_limit = ReadSinglesToVector3(binary_reader_); result.upper_limit = ReadSinglesToVector3(binary_reader_); } return(result); }
private PMXFormat.IK_Link ReadIkLink() { PMXFormat.IK_Link result = new PMXFormat.IK_Link(); result.target_bone_index = CastIntRead(binary_reader_, format_.header.boneIndexSize); result.angle_limit = binary_reader_.ReadByte(); if (result.angle_limit == 1) { result.lower_limit = ReadSinglesToVector3(binary_reader_); result.upper_limit = ReadSinglesToVector3(binary_reader_); } return result; }
private static PMXFormat.IK_Link ConvertIKLink(ushort ik_child_bone_index) { PMXFormat.IK_Link result = new PMXFormat.IK_Link(); result.target_bone_index = ik_child_bone_index; return(result); }
private static PMXFormat.IK_Link ConvertIKLink(ushort ik_child_bone_index) { PMXFormat.IK_Link result = new PMXFormat.IK_Link(); result.target_bone_index = ik_child_bone_index; return result; }