How to Set Make Transform Variables?

Hello, I am trying to convert this simple Blueprint code in C++ but I don’t know how to do it?

BP Example
image_2022-08-12_202636103

my unsuccessful try:

FVector MyLocation;
FRotator MyRotation;
FVector MyScale;

FTransform::SetLocation(MyLocation);
FTransform::SetRotation(MyRotation);
FTransform::SetScale3D(MyScale);

any help appretiated, thank you

in your blueprint you are doing this

FTransform MakeTransform(Rotation, Location, Scale);

in your cpp you are doing different things

hope it helps
cheers

2 Likes

thank you Sir, it helps and solved the issue :fire: :slight_smile: