The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.1.31 (Linux)
|
vdrift physics engine for traffic simulation - Printable Version +- Forums (https://www.vdrift.net/Forum) +-- Forum: Project (https://www.vdrift.net/Forum/forumdisplay.php?fid=4) +--- Forum: Development (https://www.vdrift.net/Forum/forumdisplay.php?fid=9) +--- Thread: vdrift physics engine for traffic simulation (/showthread.php?tid=1192) |
vdrift physics engine for traffic simulation - xdr4g0n - 11-30-2009 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 - joevenzon - 12-02-2009 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. - xdr4g0n - 12-21-2009 thank you, with this i was able to get the engine working. - xdr4g0n - 02-01-2010 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 - NaN - 02-01-2010 done - xdr4g0n - 02-01-2010 great!! thx, your helping a lot. - xdr4g0n - 02-03-2010 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 - NaN - 02-03-2010 There you go - xdr4g0n - 02-03-2010 thanks, again |