# Transform a FVector property to Local or World Space

**URL:** <https://forums.unrealengine.com/t/transform-a-fvector-property-to-local-or-world-space/435380>\
**Category:** C++\
**Tags:** properties, world-space, unreal-engine, vector, UE4, question, CPP\
**Created:** [October 10, 2018, 10:46am UTC](https://forums.unrealengine.com/t/transform-a-fvector-property-to-local-or-world-space/435380 "2018-10-10T10:46:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![WolfAlvein](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WolfAlvein](https://forums.unrealengine.com/u/WolfAlvein)\
**Post date:** [October 10, 2018, 10:46am UTC](https://forums.unrealengine.com/t/transform-a-fvector-property-to-local-or-world-space/435380/1 "2018-10-10T10:46:42Z")

</div>

Hi guys.

I have a question regarding some FVectors properties that have the meta = (MakeEditWidget = true) in their properties tag, Basically I’m moving this vector to point into certain position where I want to move the player after he does certain interactions in the level, so I’m looking for a way to transform these vectors to World space or local space so the values actually make sense when working with these values, since the current vector values are tied to it’s parent so it’s not the real local space or world space. So is there anyway to transform these into World or Local space?

Here are a pair of screenshots:

> **[Gyazo](https://gyazo.com/1065efd4bd66aafe451e6b8fd13cbeae)**
>
> Easily capture screenshots, GIFs, and replays that are ready to share. Download the free app for windows and mac.

> **[Gyazo](https://gyazo.com/97150a83a3cf0d834d22b4116db4f90e)**
>
> Easily capture screenshots, GIFs, and replays that are ready to share. Download the free app for windows and mac.

Thank you.

---

<div class="post-metadata">

**Author:** ![HarryHighDef](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HarryHighDef](https://forums.unrealengine.com/u/HarryHighDef)\
**Post date:** [October 10, 2018, 10:56am UTC](https://forums.unrealengine.com/t/transform-a-fvector-property-to-local-or-world-space/435380/2 "2018-10-10T10:56:35Z")

</div>

You can use Compose transform in the kismet library.

Just make a transform for your vector with scale 1 and compose it to your actor world transform.  
Get the location from the result and you should have your world position.

---

<div class="post-metadata">

**Author:** ![WolfAlvein](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WolfAlvein](https://forums.unrealengine.com/u/WolfAlvein)\
**Post date:** [October 10, 2018, 11:06am UTC](https://forums.unrealengine.com/t/transform-a-fvector-property-to-local-or-world-space/435380/3 "2018-10-10T11:06:22Z")

</div>

Thank you, I will test this and let you now

---

<div class="post-metadata">

**Author:** ![WolfAlvein](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WolfAlvein](https://forums.unrealengine.com/u/WolfAlvein)\
**Post date:** [October 11, 2018, 8:08am UTC](https://forums.unrealengine.com/t/transform-a-fvector-property-to-local-or-world-space/435380/4 "2018-10-11T08:08:35Z")

</div>

Hi HarryHighDef.

So this is what I did to transform the information before it’s given to the actor, is this what you meant?

```
FTransform PortalTransform = GetTransform();
					FTransform StartLocalToWorld = FTransform(FRotator::ZeroRotator, StartPoint, FVector::OneVector);
					FTransform MiddleLocalToWorld = FTransform(FRotator::ZeroRotator, MiddlePoint, FVector::OneVector);
					FTransform EndLocalToWorld = FTransform(FRotator::ZeroRotator, EndPoint, FVector::OneVector);

					StartLocalToWorld = UKismetMathLibrary::ComposeTransforms(PortalTransform, StartLocalToWorld);
					MiddleLocalToWorld = UKismetMathLibrary::ComposeTransforms(PortalTransform, MiddleLocalToWorld);
					EndLocalToWorld = UKismetMathLibrary::ComposeTransforms(PortalTransform, EndLocalToWorld);

```

And in the receiber I got the Location for each of does transformed values. Thank you for the help.
