Version: Unity 6.3 Beta (6000.3)
LanguageEnglish
  • C#

PhysicsMath.GetRelativeMatrix

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 Matrix4x4 GetRelativeMatrix(Transform transformFrom, Transform transformTo, LowLevelPhysics2D.PhysicsWorld.TransformPlane transformPlane, bool useScale);

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.
useScale If the returned matrix should include scale.

Returns

Matrix4x4 The calculated relative transformation matrix.

Description

Get the relative transformation matrix between the two specified transforms using the specified transform plane.