Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
modify AI drivers and track
08-02-2007, 07:58 AM,
#13
 
Ok. If that's the case, all you need is to reverse the player's starting orientation.

If you want to do it programmatically, check out function TRACK::ReverseStartingPositions(). This function calculates the reverse starting position and orientation when 'Reverse Track' option is set. Note that this function calculates the reverse for all cars. In your case, you only need to reverse the 1st starting location and orientation in the list, which is what the player car uses.

<edit>Sorry, the reversing of start orientation is done in TRACK::Reverse(). The relevant lines are,
Code:
//reverse start positions
        for (vector <QUATERNION>::iterator i = startquat.begin(); i != startquat.end(); i++)
        {
                //*i = i->ReturnConjugate();
                i->Rotate(3.141593, 0,1,0);
        }
</edit>
Reply


Messages In This Thread
modify AI drivers and track - by mpo - 07-27-2007, 03:17 AM
[No subject] - by rookie1 - 07-28-2007, 05:53 AM
[No subject] - by mpo - 07-31-2007, 05:09 AM
[No subject] - by rookie1 - 07-31-2007, 08:14 AM
[No subject] - by mpo - 07-31-2007, 08:30 AM
[No subject] - by joevenzon_phpbb2_import3 - 07-31-2007, 12:41 PM
[No subject] - by kidrock - 07-31-2007, 01:39 PM
[No subject] - by mpo - 07-31-2007, 01:48 PM
[No subject] - by kidrock - 07-31-2007, 05:04 PM
[No subject] - by FFuser - 07-31-2007, 06:11 PM
[No subject] - by rookie1 - 08-01-2007, 10:13 AM
[No subject] - by mpo - 08-01-2007, 02:17 PM
[No subject] - by rookie1 - 08-02-2007, 07:58 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)