Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
vdrift physics engine for traffic simulation
11-30-2009, 10:30 AM,
#1
vdrift physics engine for traffic simulation
Hi,

i try to build some kind of traffic simulation with autonomous cars. To make it more realistic I want to use the physics-engine of vdrift. I took car.h and all the files needed to build a library. Now I have sound- and graphics-engines too. I don't need those atm, sound might come in handy some day though.

I have difficulties using the engine. I don't know how i could create a car.. Where are the in and outputs of the engine?

regards,
michi
Reply
12-02-2009, 12:09 AM,
#2
 
If you look at performance_testing.cpp and in particular PERFORMANCE_TESTING::TestMaxSpeed you can kind of see which inputs the CAR object requires and how to get information from it.
Reply
12-21-2009, 05:37 AM,
#3
 
thank you, with this i was able to get the engine working.
Reply
02-01-2010, 09:56 AM,
#4
 
Hi,

we make progress including the physics and your engine improves the feeling of our car greatly. Even more than I would have anticipated.
Since you update vDrift regularly we decided to download bullet, src and include directly from the vDrift repository and include it as a external source. This works since we intent not to fumble around with your code at all but to build an interface. There's only one problem: in car.h in class CAR the members are private. If there is no reason not to do so, please make them protected, so we can inherit from car while keep the vDrift part of the simulator automatically up to date.

Michi
Reply
02-01-2010, 10:16 AM,
#5
 
done Smile
Reply
02-01-2010, 12:13 PM,
#6
 
great!! Big Grin thx, your helping a lot.
Reply
02-03-2010, 09:03 AM,
#7
 
hi,

we also like to inherit from class cardynamics in cardynamics.h. I appreciate you changed your code very much and would like to ask if you would make the private members of cardynamics protected too.

Michi
Reply
02-03-2010, 10:47 AM,
#8
 
There you go Smile
Reply
02-03-2010, 10:49 AM,
#9
 
thanks, again Smile
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)