Blueprint equivalent for C++ function RotateAngleAxis

Hi!

What is the equivalent function for C++ RotateAngleAxis in Blueprints? RotateVectorAroundAxis?

I don’t know if somewhere there is a list with the equivalent functions in C++ and Blueprint.

Thanks.

Yep! RotateVectorAroundAxis is the Blueprint equivalent. From in the UKismetMathLibrary header:

	/** Returns result of vector A rotated by AngleDeg around Axis */
	UFUNCTION(BlueprintPure, meta=(DisplayName = "Rotate Vector Around Axis", ScriptMethod = "RotateAngleAxis"), Category="Math|Vector")
	static FVector RotateAngleAxis(FVector InVect, float AngleDeg, FVector Axis);

And the implementation thereof:

FVector  UKismetMathLibrary::RotateAngleAxis(FVector InVect, float AngleDeg, FVector Axis)
{
	return InVect.RotateAngleAxis(AngleDeg, Axis.GetSafeNormal());
}

It just calls the RotateAngleAxis function on the input vector, with other two parameters.

Thanks!

I didn’t know this: DisplayName = “Rotate Vector Around Axis”.