polygon | 必须确定其所有者反向转换的导航网格节点。 |
Matrix4x4
Inverse transformation matrix of the surface owning the specified polygon.
Matrix4x4.identity when the NavMesh node is a NavMeshLink or an Off-mesh Link. See Also: NavMeshQuery.GetPolygonType.
返回包含指定导航网格节点 (Read Only) 的导航网格表面的反向变换矩阵。
与 NavMeshQuery.PolygonLocalToWorldMatrix 相反,返回的矩阵可用于将世界坐标位置变换到拥有指定多边形的导航网格表面的局部坐标系中。
重要信息:此方法不返回单个导航网格多边形的反向位置和方向。它返回拥有多边形的表面的反向位置和方向。
已知问题:返回了标识矩阵而不是已通过调用 NavMesh.AddLink(linkData、位置、旋转)实例化了的 NavMeshLinks 的实际反向变换。