RealDocs

UKismetMathLibrary::Multiply_RotatorFloat

function Engine Blueprint Since 4.0
#include "Kismet/KismetMathLibrary.h"
Access: public Specifiers: staticUFUNCTIONBlueprintPure

Description

Returns a new rotator with each component of A multiplied by the scalar B. Used to scale or dampen a rotational delta before applying it.

Caveats & Gotchas

  • This is a component-wise scalar multiply, not a rotation composition — the result can exceed 360° and does not represent the same transformation as composing A with itself B times.
  • Multiplying by a negative value flips all components, which reverses the rotation direction but also changes the geometric meaning of the result in non-obvious ways for Pitch/Roll combinations.

Signature

static UE_INL_API FRotator Multiply_RotatorFloat(FRotator A, float B);

Parameters

Name Type Description Default
A FRotator The rotator to scale.
B float Scale factor applied to all three components.

Return Type

FRotator

Example

Apply half of a rotational delta C++
FRotator Delta = UKismetMathLibrary::NormalizedDeltaRotator(TargetRot, CurrentRot);
FRotator HalfDelta = UKismetMathLibrary::Multiply_RotatorFloat(Delta, 0.5f);
SetActorRotation(UKismetMathLibrary::ComposeRotators(CurrentRot, HalfDelta));

Version History

Introduced in: 4.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.