# Check the character rotation

**URL:** <https://forums.unrealengine.com/t/check-the-character-rotation/303726>\
**Category:** Character & Animation\
**Tags:** rotation, node, check, unreal-engine, nodes, question\
**Created:** [January 12, 2015, 2:47pm UTC](https://forums.unrealengine.com/t/check-the-character-rotation/303726 "2015-01-12T14:47:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nils\_Soderman](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nils_soderman/32/582538_2.png) [@Nils\_Soderman](https://forums.unrealengine.com/u/Nils_Soderman)\
**Post date:** [January 12, 2015, 2:47pm UTC](https://forums.unrealengine.com/t/check-the-character-rotation/303726/1 "2015-01-12T14:47:41Z")

</div>

Hello!

So I’ve been trying to get this to work for a few hours now, and I can’t seem to get it right.  
I made it possible to rotate this cow, but now I want to check the rotation of the cow. So if he lands and he’s rotated let’s say more than ±60 degrees I run the game over thing. There is a bunch of nodes for “Set Rotation” but none for “Get Rotation”.

So my question is: How can I check the rotation of this cow? (and get it as a variable to later check if it’s larger than 60)

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/d/1/0d139775752e0a1dae6e22452641b3f8fd13f47c.png) ](https://i.imgur.com/oewFEBr.png)

Thanks!  
//rymdnisse

---

<div class="post-metadata">

**Author:** ![eXi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/exi/32/906583_2.png) [@eXi](https://forums.unrealengine.com/u/eXi)\
**Post date:** [January 12, 2015, 3:29pm UTC](https://forums.unrealengine.com/t/check-the-character-rotation/303726/2 "2015-01-12T15:29:53Z")

</div>

Hey, there definitly should be a Node to get the Rotation of the Actor. Can you show me the Event Graph and the Context Menu when you search for the Node?

---

<div class="post-metadata">

**Author:** ![Nils\_Soderman](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nils_soderman/32/582538_2.png) [@Nils\_Soderman](https://forums.unrealengine.com/u/Nils_Soderman)\
**Post date:** [January 12, 2015, 4:27pm UTC](https://forums.unrealengine.com/t/check-the-character-rotation/303726/3 "2015-01-12T16:27:45Z")

</div>

Alright, so this is used for the rotation, and I did find a node called “Get Actor Rotation”. But I’m rotating the sprite, not the actor.

[http://i.imgur.com/P6BXYq4.png](http://i.imgur.com/P6BXYq4.png)

I tried setting the actors rotation instead of the sprite, but then this happened, it seems to flip around at the middle: [- YouTube](https://www.youtube.com/watch?v=ZqwN3YEIiEY)

Do you have any ideas why this might be happening? or if it is possible to check the rotation of the sprite?  
Thanks!

---

<div class="post-metadata">

**Author:** ![Nils\_Soderman](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nils_soderman/32/582538_2.png) [@Nils\_Soderman](https://forums.unrealengine.com/u/Nils_Soderman)\
**Post date:** [January 12, 2015, 5:12pm UTC](https://forums.unrealengine.com/t/check-the-character-rotation/303726/4 "2015-01-12T17:12:01Z")

</div>

After a lot of trial and error I finally got it working, Thank you for your help! 🙂

---

<div class="post-metadata">

**Author:** ![eXi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/exi/32/906583_2.png) [@eXi](https://forums.unrealengine.com/u/eXi)\
**Post date:** [January 12, 2015, 6:32pm UTC](https://forums.unrealengine.com/t/check-the-character-rotation/303726/5 "2015-01-12T18:32:17Z")

</div>

Hey, seems like my comment disappeared:

I never worked with Flipbooks etc, but both have a Get and Set World Rotation:

[http://puu.sh/eqbPv/01549ac735.png](http://puu.sh/eqbPv/01549ac735.png)

[http://puu.sh/eqbQB/9600251c9c.png](http://puu.sh/eqbQB/9600251c9c.png)

EDIT: Ok (: i hope i was able to help you.

---

<div class="post-metadata">

**Author:** ![eXi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/exi/32/906583_2.png) [@eXi](https://forums.unrealengine.com/u/eXi)\
**Post date:** [January 12, 2015, 6:44pm UTC](https://forums.unrealengine.com/t/check-the-character-rotation/303726/6 "2015-01-12T18:44:22Z")

</div>

I never worked with Sprites and Flipbooks, but both Components have Get and Set World Rotation nodes:

[http://puu.sh/eqbQB/9600251c9c.png](http://puu.sh/eqbQB/9600251c9c.png)

[http://puu.sh/eqbPv/01549ac735.png](http://puu.sh/eqbPv/01549ac735.png)
