# How to rotate UVs as in example

**URL:** <https://forums.unrealengine.com/t/how-to-rotate-uvs-as-in-example/468941>\
**Category:** Rendering\
**Tags:** sprites, lens-flares, uv, unreal-engine, question\
**Created:** [July 31, 2020, 1:34am UTC](https://forums.unrealengine.com/t/how-to-rotate-uvs-as-in-example/468941 "2020-07-31T01:34:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marcis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/marcis/32/1103070_2.png) [@Marcis](https://forums.unrealengine.com/u/Marcis)\
**Post date:** [July 31, 2020, 1:34am UTC](https://forums.unrealengine.com/t/how-to-rotate-uvs-as-in-example/468941/1 "2020-07-31T01:34:40Z")

</div>

Notice how the tail light sprite is continuously rotating even if the angle between it and the camera isn’t changing and in both directions.

  
I’ve achieved similar effect but it only rotates if the angle between the sprite and the camera changes. I am using a plane with a simple sprite WPO.

---

<div class="post-metadata">

**Author:** ![Oluap\_Olinad](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/oluap_olinad/32/630833_2.png) [@Oluap\_Olinad](https://forums.unrealengine.com/u/Oluap_Olinad)\
**Post date:** [July 31, 2020, 12:26pm UTC](https://forums.unrealengine.com/t/how-to-rotate-uvs-as-in-example/468941/2 "2020-07-31T12:26:26Z")

</div>

You could just have the plane (transform into a cone to fit the tail light, but still with a square UV) and just use a Panner to move the texture.

---

<div class="post-metadata">

**Author:** ![Marcis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/marcis/32/1103070_2.png) [@Marcis](https://forums.unrealengine.com/u/Marcis)\
**Post date:** [July 31, 2020, 4:23pm UTC](https://forums.unrealengine.com/t/how-to-rotate-uvs-as-in-example/468941/3 "2020-07-31T16:23:21Z")

</div>

Not sure I understand how it would achieve the desired effect.

---

<div class="post-metadata">

**Author:** ![Marcis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/marcis/32/1103070_2.png) [@Marcis](https://forums.unrealengine.com/u/Marcis)\
**Post date:** [August 2, 2020, 3:40pm UTC](https://forums.unrealengine.com/t/how-to-rotate-uvs-as-in-example/468941/4 "2020-08-02T15:40:34Z")

</div>

Solved by using angle between vectors with component basis vector X and constant 3 vector 0,1,0. Then piping that in rotator.
