Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Reverse Tracks
03-05-2007, 06:52 AM,
Custom reversed starting positions can hold off until next release. It's OK for now, I guess.
03-05-2007, 10:43 AM,
Hi Joe,

I think there is still some problem with the track reverse change. Now the position calculation in normal mode seems wrong. In Vamos_World::World::update_race_position (), you are taking the car's distance relative to the front edge of the patch. This is correct when the track is reversed. But it's wrong when in normal direction. Seems you have introduced a function BEZIER::Reverse() in r1566, but it's not used. Can you check?
03-07-2007, 12:57 AM,
BEZIER::Reverse() isn't meant to be used. I was originally going to reverse the bezier patches, but that screws up the collision detection, and it ended up being easier to fix the position display code than the collision detection code.

For normal mode position calculation, I didn't change anything (or didn't MEAN to) so any bugs there would have already existed. I didn't actually change the "Vamos_World::World::update_race_position ()" function... in R1566 I added some lines and was going to change things, but ended up not changing anything at all (or, again, didn't mean to).
03-07-2007, 04:54 AM,
Thanks for your reply, Joe. I wouldn't have guessed reversing the patch will affect collision detection. I have gone ahead and corrected the calculation in Vamos_World::World::update_race_position () in r1600.

Forum Jump:

Users browsing this thread: 1 Guest(s)