If a function takes in an FQuat value and then multiplies it by an FQuat, the project will build properly but then crash when trying to launch the project in the editor.
Example project available but too large to submit.
1. Open UE4 Editor
2. Add code to project based on GameMode
3. In the .h file, add the following code:
static FRotator GetConversionRotator() { const auto mineToUE4 = FRotator::MakeFromEuler(FVector(-90, 0, 90)); return mineToUE4; } FQuat ConvertToUe4Rotation(FQuat inputQuat) { const FQuat rotQuat = FQuat(GetConversionRotator()); const FQuat newQuat = inputQuat * rotQuat; return newQuat; }
4. In the .cpp, add the following code:
FQuat xformRot = FQuat::Identity;
//...populate xformRot here maybe
xformRot = ConvertToUe4Rotation(xformRot);
5. Build the project in Development Editor
6. In the project folder, launch the .uproject file.
I am not able to find world outliner how to enable it?
How can i modify the param name in EQS node
Delay nodes occasionally don't fire the "Completed" output in a nativized build
Installer 4.10 failed with error code R-1603
Undefined sysmbol: typeinfo for AActor when cross-compile linux dedicated server on windows
How to have a sound cue follow a PlayerController along a spline?
Head over to the existing Questions & Answers thread and let us know what's up.
1 |
Component | UE - Foundation - Core |
---|
Created | Nov 5, 2014 |
---|---|
Resolved | Feb 17, 2015 |
Updated | Jul 14, 2021 |