Skip to content

Format

typescript
Transform.worldToLocalMatrix

class: Transform

Description

(Read Only) The matrix that transforms points from world space to local space.

Do not use this matrix to set shader parameters or perform rendering-related calculations.

Parameters

param_nametypedescription

Return

typedescription
Matrix4x4The transformation matrix.

Code Example

typescript
OnStart(): void {
    let matrix = this.transform.worldToLocalMatrix;
    Debug.Log(matrix);
    }