Question by
terraKote · Mar 07, 2017 at 02:45 PM ·
c#scripting problemmeshdeformation
Add vertex position by it's axis
Hello, everyone. I want to create planet generator. I have a cube sphere and want to add a perlin noise to vector's forward axis. The problem is it adds to world coordinates. If you give me a code I will be very grateful. Thanks.
Comment
Best Answer
Answer by terraKote · Mar 07, 2017 at 09:43 PM
The solution was simpler than I supposed:
vertexPosition += meshNormal * value;