Building a track in the game is easy... but when it comes to building a shape of tracks in a construction (.con file) with edgeList I'm lost. That is why I create curves in Blender. This is very time consuming, so why not using the possibility to make track directly in the construction. The only thing I can do is straight tracks. Curved need proper vectors and I don't know how to calculate them. Looking in the WIKI givs nothing.
Here is what I have
I need a 45° bend.
I have the starting and ending position, but how to get the vectors?
Is there a formula that I can use?
edges[#edges + 1] = { { 100.0, 0.0, 0.0 }, { ???, ???, 0.0 } }
edges[#edges + 1] = { { 130.0, 20.0, 0.0 }, { ???, ???, 0.0 } }
result.edgeLists = {
{
type = "TRACK",
params = { type = "standard.lua" },
edges = edges,
snapNodes = snapTrack
},
}