Convert Quaternion to Rotation

I need to convert a rotation information that is stored as quaternion to a rotation. I want to use this function in blueprints. I have alredy created a c++ blueprint function library. But i dont know how to code this. How i code this?

FQuat::Rotator

// Formula to convert a Quaternion rotation to FRotator

FRotator YourClassHere::BlueprintNodeName(FQuat QuatToConvert)

{

FRotator Rotator = QuatToConvert.Rotator();

return Rotator;

}

Something like this works

1 Like