Any tutorial or example project for RotatingMovementComponent?

Hi,

Is there any example or tutorial on how to use the RotatingMovementComponent?

I’ve searched everywhere but cant seem to find anything.

Thanks.

Hi JitinDhillon ,

This component rotate actor. To setup rotation angular speed use Rotation Rate parameter.

Add to actor constructor:

// Setup mobility
SetMobility(EComponentMobility::Movable);

// Create movement component and set rotation rate
RotatingComoponent = ObjectInitializer.CreateDefaultSubobject<URotatingMovementComponent>(this, TEXT("RotatingComponent"));
RotatingComoponent->RotationRate = FRotator(0, 100, 0); 

Feel free to post any additional questions here.
Hope it helps!