Instanced Static Mesh doesn't rotate on instanciation
Hey guys ! I'm currently doing real time growing trees, and i'm using an instanced static mesh component for the foliage, since every leaf is unique. When I add an leaf instance to my component, I put a random rotation on it. But for some reason, this rotation is not set, all my leaves have a zerorotator. The scale is set, the transform too, but not the rotation.
Here is the code :
I recently changed the Instanced Static Mesh Component, I beggined to put it on a child actor, and the rotation worked. But I had to remove it for an other issue.
I'm sure it's a small thing I'm missing, but I'm losing too much time searching on the internet, and there is not that much documentation on this subject...
Ok, the problem was the scaling. For some reason, when it is set to zero, it also set the rotation to zero... Thanks for J0000J, I could put the finger on this issue. Thanks dude !
answered May 19 '17 at 09:49 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here