Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Matrix4x4.TRS

public static Matrix4x4 TRS(Vector3 pos, Quaternion q, Vector3 s);

Description

Creates a translation, rotation and scaling matrix.

The returned matrix is such that it places objects at position pos, oriented in rotation q and scaled by s.

no example available in C#

See Also: TRS, Rotate, Scale, Translate, SetTRS functions.

Did you find this page useful? Please give it a rating: