Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


RigidTransform

Returns a RigidTransform constructed from a rotation represented by a unit quaternion and a translation represented by a float3 vector.
Read time 1 minuteLast updated 5 days ago

Definition

RigidTransform(quaternion, float3)

Returns a RigidTransform constructed from a rotation represented by a unit quaternion and a translation represented by a float3 vector.
public static RigidTransform RigidTransform(quaternion rot, float3 pos)

Parameters

The quaternion rotation.

The translation vector.

Returns

Type

Description

RigidTransformThe RigidTransform of the given rotation quaternion and translation vector.

RigidTransform(float3x3, float3)

Returns a RigidTransform constructed from a rotation represented by a float3x3 rotation matrix and a translation represented by a float3 vector.
public static RigidTransform RigidTransform(float3x3 rotation, float3 translation)

Parameters

rotation

The float3x3 rotation matrix.

translation

The translation vector.

Returns

Type

Description

RigidTransformThe RigidTransform of the given rotation matrix and translation vector.

RigidTransform(float4x4)

Returns a RigidTransform constructed from a rotation represented by a float3x3 matrix and a translation represented by a float3 vector.
public static RigidTransform RigidTransform(float4x4 transform)

Parameters

transform

The float4x4 transformation matrix.

Returns

Type

Description

RigidTransformThe RigidTransform of the given float4x4 transformation matrix.