Version: Unity 6.5 Alpha (6000.5)
LanguageEnglish
  • C#

RigidTransform Constructor

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public RigidTransform(quaternion rotation, float3 translation);

Parameters

Parameter Description
rotation The quaternion rotation.
translation The translation vector.

Description

Constructs a RigidTransform from a rotation represented by a unit quaternion and a translation represented by a float3 vector.


Declaration

public RigidTransform(float3x3 rotation, float3 translation);

Parameters

Parameter Description
rotation The float3x3 rotation matrix.
translation The translation vector.

Description

Constructs a RigidTransform from a rotation represented by a float3x3 matrix and a translation represented by a float3 vector.


Declaration

public RigidTransform(float4x4 transform);

Parameters

Parameter Description
transform The float4x4 transformation matrix, must be orthonormal.

Description

Constructs a RigidTransform from a float4x4. Assumes the matrix is orthonormal.