# Niagara Initial Mesh Orientation with Random Vector Input

**URL:** <https://forums.unrealengine.com/t/niagara-initial-mesh-orientation-with-random-vector-input/150316>\
**Category:** FX\
**Tags:** unreal-engine\
**Created:** [September 6, 2020, 6:34pm UTC](https://forums.unrealengine.com/t/niagara-initial-mesh-orientation-with-random-vector-input/150316 "2020-09-06T18:34:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Twads9816](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/twads9816/32/1049194_2.png) [@Twads9816](https://forums.unrealengine.com/u/Twads9816)\
**Post date:** [September 6, 2020, 6:34pm UTC](https://forums.unrealengine.com/t/niagara-initial-mesh-orientation-with-random-vector-input/150316/1 "2020-09-06T18:34:42Z")

</div>

I’m putting this up here mostly because I want to know what’s going on under the hood. When I use inital mesh orientation (IMO) in a niagara emitter I’m usually looking to get the meshes to spawn turned in a random direction. However, when I use the Random Vector input in the Rotation attribute of IMO with a scale of 1 (the default), it doesn’t seem to randomize the rotation.

 ![Annotation 2020-09-06 142638.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/8/886ed8fa7dc0670737db0f7d57a187be4b6725db.jpeg)

However, when I set the scale to 0.5 it seems to work fine.

 ![Annotation 2020-09-06 142821.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/4/6/46aa12d4623da449333c8a2e606836654774a567.jpeg)

Looking at the description for Rotation it mentions quaternions, which I’m not very familiar with. Can anyone explain to me why my expectation turns out to be wrong? Should I be using the orientation attribute instead? It seems to work correctly with random vector of scale 1. What is the difference between these 2 properties?

---

<div class="post-metadata">

**Author:** ![jecrystal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jecrystal](https://forums.unrealengine.com/u/jecrystal)\
**Post date:** [April 2, 2022, 12:59am UTC](https://forums.unrealengine.com/t/niagara-initial-mesh-orientation-with-random-vector-input/150316/2 "2022-04-02T00:59:11Z")

</div>

Answering for posterity: The rotation values here are in odd units. A value of 1 represents one complete rotation around that axis. So setting a value of 1 is the same as setting 0. Setting 0.5 will rotate it 180 degrees.  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/e/8/4e818094cd8bbefd06de6b797461983517994915.png)

---

<div class="post-metadata">

**Author:** ![Twads9816](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/twads9816/32/1049194_2.png) [@Twads9816](https://forums.unrealengine.com/u/Twads9816)\
**Post date:** [April 27, 2022, 12:56am UTC](https://forums.unrealengine.com/t/niagara-initial-mesh-orientation-with-random-vector-input/150316/3 "2022-04-27T00:56:26Z")

</div>

Yeah and my suspicion was that because the random vector input returns a unit vector which always has a magnitude of 1, it would always make one complete rotation and therefore would look exactly the same, unless scaled by a non-integer value.
