format
typescript
Matrix4x4.FromTRS(pos, rot, scale)class: Matrix4x4
description
Create a matrix based on translation, rotation, and scaling information.
parameter
| param_name | type | description |
|---|---|---|
| pos | Vector3 | Position |
| rot | Quaternion | Rotation |
| scale | Vector3 | Scaling |
return
| type | description |
|---|---|
Matrix4x4 | The new matrix |
code example
typescript
let pos = new Vector3(1,1,1);
let rot = new Quaternion(0,0,0,1);
let scale = new Vector3(1,1,1);
Matrix4x4.FromTRS(pos, rot, scale);