Transform.worldToLocalMatrix 矩阵坐标世界到自身


var worldToLocalMatrix : Matrix4x4

Description描述

Matrix that transforms a point from world space into local space (Read Only).

矩阵变换的点从世界坐标转为自身坐标(只读)。

If you're not familiar with using matrices for coordinate transformations, use Transform.InverseTransformPoint instead.

如果你不熟悉使用矩阵为坐标转换,使用Transform.InverseTransformPoint代替。

IMPORTANT: If you're setting shader parameters you MUST use Renderer.worldToLocalMatrix instead.

重要:如果你设置shader参数,你必须使用Renderer.worldToLocalMatrix替代。


,