This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Very quick overview of how this works: https://twitter.com/beepdavid/status/814869295524155392 | |
1) Custom path tool that supports line, quad and bezier sections | |
2) On path change, create a polygon (Vector3 array) by sampling points along the path | |
3) Curves are sampled evenly by estimating the curve length first, then sampling at the required curve resolution | |
4) Feed polygon into https://triangle.codeplex.com/ to get triangle data (this needs some work to use in Unity) | |
5) Create procedural mesh using output triangle data | |
6) Profit! | |
Any questions, comment or tweet me @beepdavid :) |