When creating a track for my game, I encountered an issue where the spline I used to calculate the position of my ship did not completely match the geometry. Is there something wrong with my approach?
Click here for an example of the shape used for extrusion
View the mismatch between the extrude geometry and spline
Below is the code snippet I used:
var genTrack = function (lanes, controlPoints, material, isClose) {
// Code omitted for brevity
}