Forums
Track start orientation conversion - Printable Version

+- Forums (https://www.vdrift.net/Forum)
+-- Forum: Community (https://www.vdrift.net/Forum/forumdisplay.php?fid=3)
+--- Forum: Cars & Tracks (https://www.vdrift.net/Forum/forumdisplay.php?fid=11)
+--- Thread: Track start orientation conversion (/showthread.php?tid=1361)



Track start orientation conversion - NaN - 11-01-2010

I've used a script to convert start orientation from quaternions to euler angles. If you notice any issues, please post here.


Re: Track start orientation conversion - alex25 - 11-01-2010

NaN Wrote:I've used a script to convert start orientation from quaternions to euler angles. If you notice any issues, please post here.
you should update the track editor to output euler angles then.

--alex--


- NaN - 11-01-2010

I've committed the code(untested).


- alex25 - 11-02-2010

NaN Wrote:I've committed the code(untested).
doesn't even compile for me:
Code:
src/track.cpp: In member function 'void TRACK::Load(std::string)':
src/track.cpp:522: warning: unused variable 'w'
src/track.cpp: At global scope:
src/track.cpp:543: error: expected constructor, destructor, or type conversion before '.' token
src/track.cpp:544: error: expected unqualified-id before 'for'
src/track.cpp:544: error: expected constructor, destructor, or type conversion before '<' token
src/track.cpp:544: error: expected constructor, destructor, or type conversion before '++' token
scons: *** [build/track.o] Error 1
scons: building terminated because of errors.

--alex--


- alex25 - 11-02-2010

looks like there is a stray } in there:
Code:
--- src/track.cpp       (revision 87)
+++ src/track.cpp       (working copy)
@@ -537,7 +537,6 @@
                        else end_of_position = true;
         }
         trackconfig.SuppressError(false); //turn error message back on
-       }

        int lapmarkers=0;
        trackconfig.GetParam("lap sequences", lapmarkers);
--alex--


- NaN - 11-02-2010

Thanks, fixed.