# \[Material\] Rotate about local Y or X axis

**URL:** <https://forums.unrealengine.com/t/material-rotate-about-local-y-or-x-axis/472842>\
**Category:** Rendering\
**Tags:** unreal-engine, question\
**Created:** [October 13, 2020, 1:46am UTC](https://forums.unrealengine.com/t/material-rotate-about-local-y-or-x-axis/472842 "2020-10-13T01:46:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Galvanicus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Galvanicus](https://forums.unrealengine.com/u/Galvanicus)\
**Post date:** [October 13, 2020, 1:46am UTC](https://forums.unrealengine.com/t/material-rotate-about-local-y-or-x-axis/472842/1 "2020-10-13T01:46:07Z")

</div>

Howdy folks,

Been trying to rotate about the local X or Y axis of a spherical mesh using material’s WPO as such:

 ![318478-wpo1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/a/4/2a485c02da966c3b711d756b6ae6960cda801250.png)

The issue is that if you rotate the actor/mesh, it is ignored since it focuses on the world’s Y axis.  
My question is what can i do to make it rotate along the mesh’s local Y axis instead.

Fyi, I am trying to make a rotating boulder. I don’t need to calculate physics so this is purely aesthetic.

I tried to make it local using the transform vector nodes however it ends up rotating around a world axis of sorts instead of locally…  
Any tips or clues?

Thank you!

---

<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:** [October 13, 2020, 4:44am UTC](https://forums.unrealengine.com/t/material-rotate-about-local-y-or-x-axis/472842/2 "2020-10-13T04:44:44Z")

</div>

You need to use component basis vector as the rotation axis.
