变换矩阵的问题,要保持相对位置不变,要转换为父节点的本地坐标,
combine[i].transform = meshFilters[i].transform.localToWorldMatrix; 这句话改为
combine[i].transform = transform.worldToLocalMatrix * meshFilters[i].transform.localToWorldMatrix;
这样应该就可以了。。。。
原文地址:http://ask.youkuaiyun.com/questions/175622
combine[i].transform = meshFilters[i].transform.localToWorldMatrix; 这句话改为
combine[i].transform = transform.worldToLocalMatrix * meshFilters[i].transform.localToWorldMatrix;
这样应该就可以了。。。。
原文地址:http://ask.youkuaiyun.com/questions/175622