기술 자료

Unity Engine

Unity Engine

GetRelativeMatrix(Transform, Transform, TransformPlane, bool)

Get the relative transformation matrix between the two specified transforms using the specified transform plane.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

public static Matrix4x4 GetRelativeMatrix(Transform transformFrom, Transform transformTo, PhysicsWorld.TransformPlane transformPlane = TransformPlane.XY, bool useScale = true)

Parameters

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

Type

Description

Matrix4x4The calculated relative transformation matrix.