Version: Unity 6.6 Alpha (6000.6)
LanguageEnglish
  • C#

PhysicsMath.GetRelativePose2D

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 void GetRelativePose2D(ref Matrix4x4 transformFrom, ref Matrix4x4 transformTo, TransformPlane transformPlane, ref TransformPlaneCustom transformPlaneCustom, out Vector2 translation, out float rotation, out Vector2 scale);

Parameters

Parameter Description
transformFrom The transform used as a reference to transform from.
transformTo The transform used as a reference to transform to.
transformPlane The transform plane to use.
transformPlaneCustom The custom transform plane to use (if required).
translation The 2D relative translation.
rotation The 2D relative rotation.
scale The 2D relative scale. Scale is not relative and always uses the transformTo lossyScale.

Description

Get the relative transformation pose (translation, rotation and scale) between the two specified transform matrix using the specified transform plane to transform into 2D space.