# How do you make this code function it makes no sense and doesn't follow the tutorial at all.

**URL:** <https://forums.unrealengine.com/t/how-do-you-make-this-code-function-it-makes-no-sense-and-doesnt-follow-the-tutorial-at-all/2550220>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [June 10, 2025, 5:01pm UTC](https://forums.unrealengine.com/t/how-do-you-make-this-code-function-it-makes-no-sense-and-doesnt-follow-the-tutorial-at-all/2550220 "2025-06-10T17:01:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AtAshTag](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/atashtag/32/997253_2.png) [@AtAshTag](https://forums.unrealengine.com/u/AtAshTag)\
**Post date:** [June 10, 2025, 5:01pm UTC](https://forums.unrealengine.com/t/how-do-you-make-this-code-function-it-makes-no-sense-and-doesnt-follow-the-tutorial-at-all/2550220/1 "2025-06-10T17:01:32Z")

</div>

My Code

# Get the delta transform between two given transforms.

```
GetDeltaTransform<public>(TransformOne:(/UnrealEngine.com/Temporary/SpatialMath:)transform, TransformTwo:(/UnrealEngine.com/Temporary/SpatialMath:)transform)<transacts>:(/UnrealEngine.com/Temporary/SpatialMath:)transform=
    (/UnrealEngine.com/Temporary/SpatialMath:)transform:
        Translation := TransformTwo.Translation - TransformOne.Translation
        Rotation := (/UnrealEngine.com/Temporary/SpatialMath:)MakeComponentWiseDeltaRotation(TransformTwo.Rotation, TransformOne.Rotation)
        Scale := VectorOnes() + ((TransformTwo.Scale - TransformOne.Scale) / TransformOne.Scale)

```

Error

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/a/c/1acac4c77f0064d994736110941b0db30ba74267.png)

Tutorial

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/f/5/ff5a3d4ba44f8d21021fd1d3945f59c10799b652.png)

Like how is someone suppose to follow this stuff ???

Ive been trying and my head hurts nothing makes sense and it feels like this entire sg system has been thrown out to meet a deadline and its not even setup to use math modules correctly

---

<div class="post-metadata">

**Author:** ![AtAshTag](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/atashtag/32/997253_2.png) [@AtAshTag](https://forums.unrealengine.com/u/AtAshTag)\
**Post date:** [June 10, 2025, 5:02pm UTC](https://forums.unrealengine.com/t/how-do-you-make-this-code-function-it-makes-no-sense-and-doesnt-follow-the-tutorial-at-all/2550220/2 "2025-06-10T17:02:24Z")

</div>

Full Snip:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/9/1/591c714d2e1e76ca9188b7e4d446843374703197.png)

---

<div class="post-metadata">

**Author:** ![swaggod](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/swaggod/32/1051181_2.png) [@swaggod](https://forums.unrealengine.com/u/swaggod)\
**Post date:** [June 10, 2025, 5:30pm UTC](https://forums.unrealengine.com/t/how-do-you-make-this-code-function-it-makes-no-sense-and-doesnt-follow-the-tutorial-at-all/2550220/3 "2025-06-10T17:30:03Z")

</div>

The other thing that is probably messing with this is the fact they just switched to LUF coordinate system instead of XYZ, but still kept the old Unreal module. It seems annoying that this is the case but you might have to specify which vector3 you want. This is an example from documentation:`	my_class := class: MyUnrealEngineVector:(/UnrealEngine.com/Temporary/SpatialMath:)vector3 = (/UnrealEngine.com/Temporary/SpatialMath:)vector3{} MyVerseVector:(/Verse.org/SpatialMath:)vector3 = (/Verse.org/SpatialMath:)vector3{}`

---

<div class="post-metadata">

**Author:** ![AtAshTag](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/atashtag/32/997253_2.png) [@AtAshTag](https://forums.unrealengine.com/u/AtAshTag)\
**Post date:** [June 10, 2025, 5:32pm UTC](https://forums.unrealengine.com/t/how-do-you-make-this-code-function-it-makes-no-sense-and-doesnt-follow-the-tutorial-at-all/2550220/4 "2025-06-10T17:32:29Z")

</div>

Isnt that what im doing with the (/UnrealEngine.com/Temporary/SpatialMath:)

I tried for ages to get the + to work even asked on the discord idk what im doing with this at all seems well bodged ngl

---

<div class="post-metadata">

**Author:** ![AtAshTag](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/atashtag/32/997253_2.png) [@AtAshTag](https://forums.unrealengine.com/u/AtAshTag)\
**Post date:** [June 10, 2025, 6:43pm UTC](https://forums.unrealengine.com/t/how-do-you-make-this-code-function-it-makes-no-sense-and-doesnt-follow-the-tutorial-at-all/2550220/5 "2025-06-10T18:43:02Z")

</div>

This is how you make it work if others get stuck

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/3/1/131de6d51a153034f6d4c8921b755c7e0e73691d.png)

What a nightmare this has turned out to be
