Hello dear Community,
in my Project I have the Gimbal Lock Problem.
My whole Project uses BluePrints.
Because of that, I want to make a C++ Function Library which I can acess with my BluePrints.
In the Function Library should be a Function which do a Rotation with Quaternions.
But everytime I try to use the ‘AddLocalRotation’-Function I get an Error Message: error C3861 “AddLocalRotation” identifier not found! (translated from german)
HEADER:
#pragma once
#include "Kismet/BlueprintFunctionLibrary.h"
#include "Runtime/Engine/Classes/Components/SceneComponent.h"
#include "MyBlueprintFunctionLibraryTest.generated.h"
UCLASS()
class FLYINGTEMPLATE_API UMyBlueprintFunctionLibraryTest : public UBlueprintFunctionLibrary
{
GENERATED_BODY()
UFUNCTION(BlueprintCallable, meta = (DisplayName = "AddLocalRotationQuat", Keywords = "rotation"), Category = "Utilities|Transformation")
void AddLocalRotationQuat(const FQuat& DeltaRotation);
};
I want to use the standard AddLocalRotation method that you can also use in the blueprints.
I basically try to implement this original from pastebin in my function library.