Hi there,
I am currently having difficulty, when designing a custom track the car seems to keep going off the track.
This picture is the track.
This photo is the track with the racing line (from the track maker) in red.
This picture has yellow circles indicating where the car goes off the track.
And this is the code I have in the LUA file.
–You Can use 0, 1, -1 instead.
local STRAIGHT = 0
local LEFT = 1
local RIGHT = -1
Track = {
Name = “Track”,
–Track Image Info
–Track Image must be 1280 x 720
–Start Position on the Image x,y from Top Left
Start = { 417, 502 },
--How many pixels per meter ( Pixels / Length )
--Measure a long straight and then manipulate from there
Scale = 52 / 10,
Layout = { STRAIGHT, LEFT, LEFT, LEFT, LEFT, RIGHT, STRAIGHT, RIGHT, STRAIGHT, LEFT, RIGHT, RIGHT, RIGHT, RIGHT, STRAIGHT, LEFT, LEFT, STRAIGHT, LEFT, STRAIGHT, RIGHT, RIGHT, RIGHT, STRAIGHT, RIGHT, RIGHT, },
LayoutInfo = { 100, 90, 90, 40, 45, 85, 10, 90, 2.5, 90, 90, 90, 90, 90, 5, 90, 90, 25, 40, 10, 90, 90, 40, 100, 90, 90, },
CornerRadius = { 0, 23, 23, 23, 5, 25, 0, 5, 0, 5, 30, 25, 18, 10, 0, 8, 8, 0, 20, 0, 37, 33, 47, 0, 6, 7, },
Slope = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, },
Sportiness = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, },
Camber = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, },
Split1 = 1,
Split2 = 2,
}
Help would be very much appreciated.
I have done a search for “Test Track Problem Help” and could not find the solution I am looking for.
I have also viewed the tutorial posted by 07CobaltGirl (which I did find informative and useful, without it the car may have ended up somewhere crazy).
Thanks