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

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?

12-02-2009, 12:09 AM,
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.
12-21-2009, 05:37 AM,
thank you, with this i was able to get the engine working.
02-01-2010, 09:56 AM,

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.

02-01-2010, 10:16 AM,
done Smile
02-01-2010, 12:13 PM,
great!! Big Grin thx, your helping a lot.
02-03-2010, 09:03 AM,

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.

02-03-2010, 10:47 AM,
There you go Smile
02-03-2010, 10:49 AM,
thanks, again Smile

Forum Jump:

Users browsing this thread: 1 Guest(s)