- From the Modes tab, under the Place section and under Basic, drag and drop a Cube object into your scene.
- From the Details tab, go to the Transform component and change the Mobility property to Movable.
- Afterwards, click on the Add Component button and select New C++ Component.
- From the menu that pops up, select Actor Component and select Next:
- From there, give your component a name, for example, RotateActorComponent, and then press the Create Class button.
- Construct your FRotator. FRotators can be constructed using a stock pitch, yaw, and roll constructor, as shown in the following example:
FRotator( float InPitch, float ...