3Ducttapes(); Yvo von Berg | CG Toolsmith blog | C++, Python

Unity first tool C#

Started working on a Rollercoaster tool for Unity.

Basically started with generating the BezierCurve first. Solved the challenge of getting each segment of the curve to have a equal size. (So it doesn’t stretch segments). I’m using a similar technique described here: https://www.youtube.com/watch?v=o9RK6O2kOKo

Next step was to use the positional data from these segments to generate quads in between the start and end point of each segment. Found a cool method in the Unity API to convert a world space vector to local “Vertex” space: InverseTransformPoint(Vector3 point). The result of that is applied to the vertices of the new mesh.

Other Tycoon videos: https://www.youtube.com/watch?v=tguRxtjK61A