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

math.RigidTransform

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 static RigidTransform RigidTransform(quaternion rot, float3 pos);

Parameters

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

Returns

RigidTransform The RigidTransform of the given rotation quaternion and translation vector.

Description

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


Declaration

public static RigidTransform RigidTransform(float3x3 rotation, float3 translation);

Parameters

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

Returns

RigidTransform The RigidTransform of the given rotation matrix and translation vector.

Description

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


Declaration

public static RigidTransform RigidTransform(float4x4 transform);

Parameters

Parameter Description
transform The float4x4 transformation matrix.

Returns

RigidTransform The RigidTransform of the given float4x4 transformation matrix.

Description

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