# Does UE get FTransform composure wrong?

**URL:** <https://forums.unrealengine.com/t/does-ue-get-ftransform-composure-wrong/1612387>\
**Category:** Programming & Scripting\
**Tags:** math, unreal-engine, transform, bug-report, question\
**Created:** [January 13, 2024, 10:05pm UTC](https://forums.unrealengine.com/t/does-ue-get-ftransform-composure-wrong/1612387 "2024-01-13T22:05:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DELGOODIE](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/delgoodie/32/1103781_2.png) [@DELGOODIE](https://forums.unrealengine.com/u/DELGOODIE)\
**Post date:** [January 13, 2024, 10:05pm UTC](https://forums.unrealengine.com/t/does-ue-get-ftransform-composure-wrong/1612387/1 "2024-01-13T22:05:54Z")

</div>

So UE defines transform composure:

```auto
// Order matters when composing transforms: C = A * B will yield a transform C that logically first applies A then B to any subsequent transformation. Note that this is the opposite order of quaternion (TQuat<T>) multiplication.

```

However, in the Multiplication function:

```auto
		// ScaleResult = Scale.B * Scale.A
		OutTransform->Scale3D = VectorMultiply(ScaleA, ScaleB);

```

`  
Component-wise scale multiplication does not take into account the rotation of the incoming (local) transform A.

The result means that scaling an object on the z-axis will scale a rotated child object along its local z-axis, not the parent z-axis, which is definitely not intended because this is not how location or rotation behave.

Is this a bug?

EDIT: Converting the two transforms to Matrices and then performing the multiplication is a work-around to get the correct result:

```auto
FTransform(A.ToMatrixWithScale() * B.ToMatrixWithScale());

```
