ドキュメント

Unity Engine

Unity Engine

TRS(float3, quaternion, float3)

Returns a float4x4 matrix representing a combined scale-, rotation- and translation transform. Equivalent to mul(translationTransform, mul(rotationTransform, scaleTransform)).
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

public static float4x4 TRS(float3 translation, quaternion rotation, float3 scale)

Parameters

translation

The translation vector.

rotation

The quaternion rotation.

scale

The scaling factors of each axis.

Returns

Type

Description

float4x4The float4x4 matrix representing the translation, rotation, and scale by the inputs.