Nice to meet you.
When changing the area running the race from (0 red | green) to (-1 green | blue), which parameter should I adjust?
There are a few ways of making the change, but the easiest is to call AimForLane in Race.py like this:
AimForLane
Race.py
AimForLane(-1)
The code has a RacePy samples folder with some examples, see SimpleLap.py for an example of how you can use this to change lane during a lap.
RacePy samples
SimpleLap.py
Sorry for my late response, my work was busy.
I changed value of ”targetTrackPosition” in the Monster standard code ”Settings.py” from 0.0 to -1.0
targetTrackPosition = 0.0 targetTrackPosition = -1.0
More information about text formats
<pre class="brush: lang">...</pre>
There are a few ways of making the change, but the easiest is to call
AimForLane
inRace.py
like this:The code has a
RacePy samples
folder with some examples, seeSimpleLap.py
for an example of how you can use this to change lane during a lap.Sorry for my late response, my work was busy.
I changed value of ”targetTrackPosition” in the Monster standard code ”Settings.py” from 0.0 to -1.0
Add new comment