コード例 #1
0
    private PMXFormat.RigidbodyJointList ReadRigidbodyJointList()
    {
        PMXFormat.RigidbodyJointList result = new PMXFormat.RigidbodyJointList();
        uint joint_count = binary_reader_.ReadUInt32();

        result.joint = new PMXFormat.Joint[joint_count];
        for (uint i = 0, i_max = (uint)result.joint.Length; i < i_max; ++i)
        {
            result.joint[i] = ReadJoint();
        }
        return(result);
    }
コード例 #2
0
	private PMXFormat.RigidbodyJointList ReadRigidbodyJointList() {
		PMXFormat.RigidbodyJointList result = new PMXFormat.RigidbodyJointList();
		uint joint_count = binary_reader_.ReadUInt32();
		result.joint = new PMXFormat.Joint[joint_count];
		for (uint i = 0, i_max = (uint)result.joint.Length; i < i_max; ++i) {
			result.joint[i] = ReadJoint();
		}
		return result;
	}
コード例 #3
0
 private static PMXFormat.RigidbodyJointList ConvertRigidbodyJointList(PMDFormat pmx)
 {
     PMXFormat.RigidbodyJointList result = new PMXFormat.RigidbodyJointList();
     result.joint = pmx.rigidbody_joint_list.joint.Select(x => ConvertJoint(x)).ToArray();
     return(result);
 }
コード例 #4
0
	private static PMXFormat.RigidbodyJointList ConvertRigidbodyJointList(PMDFormat pmx) {
		PMXFormat.RigidbodyJointList result = new PMXFormat.RigidbodyJointList();
		result.joint = pmx.rigidbody_joint_list.joint.Select(x=>ConvertJoint(x)).ToArray();
		return result;
	}