# Foliage local rotation

**URL:** <https://forums.unrealengine.com/t/foliage-local-rotation/488344>\
**Category:** World Creation\
**Tags:** rotation, unreal-engine, Foliage, local, question\
**Created:** [September 3, 2021, 8:31am UTC](https://forums.unrealengine.com/t/foliage-local-rotation/488344 "2021-09-03T08:31:21Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mkraft857](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mkraft857](https://forums.unrealengine.com/u/Mkraft857)\
**Post date:** [September 3, 2021, 8:31am UTC](https://forums.unrealengine.com/t/foliage-local-rotation/488344/1 "2021-09-03T08:31:21Z")

</div>

The local rotation widget doesnt seem to work with foliage instances, making it very dificult and time consuming to rotate foliage with any precision.  
Is there some setting or plugin i can use to make this happen?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [September 3, 2021, 9:01am UTC](https://forums.unrealengine.com/t/foliage-local-rotation/488344/2 "2021-09-03T09:01:39Z")

</div>

What problem are you having?

![347909-foliagerotate.gif](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/0/a/a0a3a0dcc33f02425d1b107412906294cf37074f.gif)

---

<div class="post-metadata">

**Author:** ![Mkraft857](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mkraft857](https://forums.unrealengine.com/u/Mkraft857)\
**Post date:** [September 3, 2021, 10:21am UTC](https://forums.unrealengine.com/t/foliage-local-rotation/488344/3 "2021-09-03T10:21:33Z")

</div>

The widget isnt aligning in local space ie local rotation.  
Of coarse it looks fine on a zero’d out peice of foliage. but if I’ve placed something on a slope the widget is still in world space and doesnt match the rotation of the peice of foliage.  
And switching to local space via the toggle, up where the snapping options are does nothing in the foliage editor.

---

<div class="post-metadata">

**Author:** ![Mkraft857](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mkraft857](https://forums.unrealengine.com/u/Mkraft857)\
**Post date:** [September 4, 2021, 1:08pm UTC](https://forums.unrealengine.com/t/foliage-local-rotation/488344/4 "2021-09-04T13:08:58Z")

</div>

Here’s a static mesh with local rotation working properly.

![347978-localrotation.gif](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/4/9/d49688e815284fd0eacfc92d6aaf0da0e21e2541.gif)

---

<div class="post-metadata">

**Author:** ![Mkraft857](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mkraft857](https://forums.unrealengine.com/u/Mkraft857)\
**Post date:** [September 4, 2021, 1:10pm UTC](https://forums.unrealengine.com/t/foliage-local-rotation/488344/5 "2021-09-04T13:10:28Z")

</div>

And heres a foliage instance with local rotation toggled

![347979-brokenrotation.gif](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/6/b/06bccf4943f9d86a3ee709a2a75dc17764bf9a74.gif)

---

<div class="post-metadata">

**Author:** ![Mkraft857](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mkraft857](https://forums.unrealengine.com/u/Mkraft857)\
**Post date:** [September 4, 2021, 1:14pm UTC](https://forums.unrealengine.com/t/foliage-local-rotation/488344/6 "2021-09-04T13:14:29Z")

</div>

The first one matches the the rotation of the cube and the second one doesn’t.  
In fact the second one’s not world space either and it’s near impossible to use…  
I dont understand how this has gone under the radar for so long?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [September 4, 2021, 1:52pm UTC](https://forums.unrealengine.com/t/foliage-local-rotation/488344/7 "2021-09-04T13:52:52Z")

</div>

You can always ( in normal mode and foliage mode ), switch rotation context with this button:

![347980-rotationcontextg.gif](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/7/f/07f9b5cc56955b58cd20e3c46df0c7ccb8575784.gif)

EDIT: It does work in foliage mode…

---

<div class="post-metadata">

**Author:** ![Mkraft857](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mkraft857](https://forums.unrealengine.com/u/Mkraft857)\
**Post date:** [September 4, 2021, 2:34pm UTC](https://forums.unrealengine.com/t/foliage-local-rotation/488344/8 "2021-09-04T14:34:09Z")

</div>

Toggling between localspace and worldspace doesnt work for me in the Foliage editor.  
Thats why i ask if theres some setting somewhere that im missing.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [September 4, 2021, 2:44pm UTC](https://forums.unrealengine.com/t/foliage-local-rotation/488344/9 "2021-09-04T14:44:29Z")

</div>

Sorry, yes, you did say quite clearly. I don’t understand why it’s working for me and not you…

Do you have 4.26.2?

---

<div class="post-metadata">

**Author:** ![Mkraft857](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mkraft857](https://forums.unrealengine.com/u/Mkraft857)\
**Post date:** [September 5, 2021, 1:27am UTC](https://forums.unrealengine.com/t/foliage-local-rotation/488344/10 "2021-09-05T01:27:16Z")

</div>

Yes, I’ve also tested in 4.27 with a clean project and still no luck.

---

<div class="post-metadata">

**Author:** ![LongFang87](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/longfang87/32/88714_2.png) [@LongFang87](https://forums.unrealengine.com/u/LongFang87)\
**Post date:** [September 5, 2021, 4:21am UTC](https://forums.unrealengine.com/t/foliage-local-rotation/488344/11 "2021-09-05T04:21:05Z")

</div>

Just here to confirm that it is indeed working just fine in 4.27.0.

![348013-localtransform2.gif](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/c/7/8c769c4f57361bc3aa79085337f14e7e02d64988.gif)

What I did notice is that it prompted me to delete the static mesh object to save it to my project as a foliage instanced mesh, if I chose to **name it the same**. If you’ve ever perhaps, not paid attention and saved one of the default assets by clicking “Yes” with a bad pivot, it could explain this?

In light if it being working for multiple people in multiple engine versions, my solution to you is to just reinstall the engine completely, if you’ve not already tried that. It should just work by default, as it does for the rest of us… This boils down in my eyes to a corrupt asset that got saved over. _Back up your projects before you do this._

---

<div class="post-metadata">

**Author:** ![Mkraft857](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mkraft857](https://forums.unrealengine.com/u/Mkraft857)\
**Post date:** [September 5, 2021, 6:21am UTC](https://forums.unrealengine.com/t/foliage-local-rotation/488344/12 "2021-09-05T06:21:59Z")

</div>

Did a clean install on a sencond machine, made a blank project, imported a cube from maya, placed down as foliage, exact same results as i have on my old install. Just to be sure we’re on the same page, the gif you’ve shown doesn’t illustrate the problem, because your putting the rotation back to zero before each subsequent rotation. can u make a gif that shows the instance in the foliage editor and rotate it 45 degrees on x then 45 on y then 45 on z, so that the final rotation wil be 45,45,45? Also I found a bug report from a while back that confirms my issue here:

> **[The Unreal Engine Issues and Bug Tracker](https://issues.unrealengine.com/issue/UE-47242)**
>
> Welcome to the Unreal Engine Issue and Bug Tracker. You can check the status of an issue and search for existing bugs. See latest bug fixes too.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [September 5, 2021, 8:02am UTC](https://forums.unrealengine.com/t/foliage-local-rotation/488344/13 "2021-09-05T08:02:00Z")

</div>

Ahhhh… you’re right. I managed to get the local pivot off center with a bit of fiddling:

![348020-screenshot-1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/8/6/0864e9952c8a02a5ec3454823371da548516b254.jpeg)

Is there a particular thing you’re trying to do, or is it just a foliage problem?

---

<div class="post-metadata">

**Author:** ![Mkraft857](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mkraft857](https://forums.unrealengine.com/u/Mkraft857)\
**Post date:** [September 5, 2021, 8:21am UTC](https://forums.unrealengine.com/t/foliage-local-rotation/488344/14 "2021-09-05T08:21:00Z")

</div>

I’m placing down large rock formations along cliff faces on my landscape.  
the problem is they need to be tweaked manually so they fit along the ridges etc.  
I also would rather not have to use static meshes because they’re less performant and more time consuming to place down.  
In a large open world like the one I’m making this is a huge hurdle.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [September 5, 2021, 8:35am UTC](https://forums.unrealengine.com/t/foliage-local-rotation/488344/15 "2021-09-05T08:35:32Z")

</div>

Yes, I hear you. I think it might also be a way of working ( obviously it should work ), as I’ve never noticed it, and have been tweaking foliage for a long time.

I don’t know if the free rotate is any better? I don’t know what it’s called, you know when you put the mouse in the center of the rotate widget, and you can move in all directions at once.

![348032-free.gif](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/8/9/c89dbcd488bd677265ae5861bf259e3af1c3850e.gif)

---

<div class="post-metadata">

**Author:** ![Mkraft857](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mkraft857](https://forums.unrealengine.com/u/Mkraft857)\
**Post date:** [September 5, 2021, 8:58am UTC](https://forums.unrealengine.com/t/foliage-local-rotation/488344/16 "2021-09-05T08:58:53Z")

</div>

Yeah, I tried that as well and i don’t find it much easier to use.  
It’d be nice if I could get some kind of staff response on this or i guess I’m in for many hours of placing rocks lol.  
I figure i can place the ridges by hand with static meshes and do the fill with the foliage tool but still it’s less than ideal.  
I’m not even sure if that’s an option though for a scene that going to end up with thousands of static meshes, and I’d hate to find out hours in that its killing my performance.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [September 5, 2021, 9:13am UTC](https://forums.unrealengine.com/t/foliage-local-rotation/488344/17 "2021-09-05T09:13:34Z")

</div>

Apart from writing your own tool ( it’s not that bad ), something you can do, is place them all as static meshes and, when you’re done, right click ‘merge actors’ and choose instanced:

![348035-screenshot-5.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/b/c/5bc920dd5ed59847c83c816f87cac788dfed813b.jpeg)

The downside is, after that, it’s all one big thing. No going back.

Another possibility is using a tool:

> **[Instance Tool in Code Plugins - UE Marketplace](https://www.unrealengine.com/marketplace/en-US/product/instance-tool)**
>
> Instanced Static Mesh Editing Made Easy! Instance Tool is an editor mode plugin for Unreal Engine, it allows you to quickly select/edit/convert Instanced Static Meshes in editor viewports.

With that, you can make then all an instance, but then convert back to meshes etc.

---

<div class="post-metadata">

**Author:** ![Mkraft857](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mkraft857](https://forums.unrealengine.com/u/Mkraft857)\
**Post date:** [September 5, 2021, 9:26am UTC](https://forums.unrealengine.com/t/foliage-local-rotation/488344/18 "2021-09-05T09:26:06Z")

</div>

I might give that tool a try.  
Do you know if i can use it to convert/edit foliage instances?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [September 5, 2021, 9:28am UTC](https://forums.unrealengine.com/t/foliage-local-rotation/488344/19 "2021-09-05T09:28:47Z")

</div>

No, because once it’s in the foliage tool, the information is kind of locked away. It just converts back and forth.

---

<div class="post-metadata">

**Author:** ![Mkraft857](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mkraft857](https://forums.unrealengine.com/u/Mkraft857)\
**Post date:** [September 5, 2021, 9:47am UTC](https://forums.unrealengine.com/t/foliage-local-rotation/488344/20 "2021-09-05T09:47:02Z")

</div>

Ok, thanks for the help and patience. I’ll try and figure out a good work flow with the tools you’ve listed.

[Next page](https://forums.unrealengine.com/t/foliage-local-rotation/488344.md?page=2)
