# How do I properly define a Rotator (Rotation) variable in Verse and get it's Pitch, Roll and Yaw values?

**URL:** <https://forums.unrealengine.com/t/how-do-i-properly-define-a-rotator-rotation-variable-in-verse-and-get-its-pitch-roll-and-yaw-values/2335926>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [February 16, 2025, 5:02am UTC](https://forums.unrealengine.com/t/how-do-i-properly-define-a-rotator-rotation-variable-in-verse-and-get-its-pitch-roll-and-yaw-values/2335926 "2025-02-16T05:02:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mr\_Awere](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mr_awere/32/1029585_2.png) [@Mr\_Awere](https://forums.unrealengine.com/u/Mr_Awere)\
**Post date:** [February 16, 2025, 5:02am UTC](https://forums.unrealengine.com/t/how-do-i-properly-define-a-rotator-rotation-variable-in-verse-and-get-its-pitch-roll-and-yaw-values/2335926/1 "2025-02-16T05:02:08Z")

</div>

I quite don’t understand how Rotator variable types work in Verse. The documentation provided on the matter is lacking and I am still learning Verse in general.

From what I understand, creating a variable like this defines a Rotator with 0 value in Pitch, Roll and Yaw.

`var NewRotator : rotation = rotation{}`

I can also make use of the method MakeRotator() to create a rotation type variable too.

However, I can’t figure out how I can break this rotator and get the individual Axis inside the variable. For example, I have a fort\_character rotation variable and I want to get the Yaw value of it.

Which method or property do you use to get this float value?

---

<div class="post-metadata">

**Author:** ![Gu7z](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gu7z](https://forums.unrealengine.com/u/Gu7z)\
**Post date:** [March 7, 2025, 3:43pm UTC](https://forums.unrealengine.com/t/how-do-i-properly-define-a-rotator-rotation-variable-in-verse-and-get-its-pitch-roll-and-yaw-values/2335926/2 "2025-03-07T15:43:47Z")

</div>

You can use like this

`InitialRotation:rotation = MakeRotation(vector3{X:=0.0, Y:=0.0, Z:=-1.0}, 1.5708)`

The second argument is in AngleRadians

So I did this

```auto
ConvertAngleToRadians(angleDegrees: float): float =
    var PI: float = 3.141592653589793
    angleDegrees * (PI / 180.0)

InitialRotation:rotation = MakeRotation(vector3{X:=0.0, Y:=0.0, Z:=-1.0}, ConvertAngleToRadians(90.0))

```

---

<div class="post-metadata">

**Author:** ![btwixer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@btwixer](https://forums.unrealengine.com/u/btwixer)\
**Post date:** [March 7, 2025, 3:51pm UTC](https://forums.unrealengine.com/t/how-do-i-properly-define-a-rotator-rotation-variable-in-verse-and-get-its-pitch-roll-and-yaw-values/2335926/3 "2025-03-07T15:51:32Z")

</div>

There are functions provided to work with them.

To create a specific rotation use

`MakeRotationFromYawPitchRollDegrees(180.0, 0.0, 0.0)`

There’s a version for radians too I think.

To get the components of a rotation use the following, which returns a float array with the values.

`MyRotation.GetYawPitchRollDegrees()`

You can also do things like this, applying a rotation to an existing rotation.

`set aTrans.Rotation = mBoard.GetTransform().Rotation.ApplyYaw(3.14159)`

In the VS Editor if you control click on a Epic defined item, such as "rotation’, it will open the associated Verse digest where you can see what else is provided by looking around in there.
