jv-ode more than one car

Blitz3D Forums/Blitz3D Userlibs/jv-ode more than one car

Santiworld(Posted 2008) [#1]
hi...
i learning use the jv-ode...

i make modifications from demo, trying to put two cars...

i can create the secound car... but i dont understand how works the keyboard control, with the force variable... how i apply to the secound car?...

each car is a type?... what type is ?

there is an example show this?, more than one car in jv-ode?

sorry, for my english...

Saludos..


VIP3R(Posted 2008) [#2]
Here's a two car demo with simple AI controlling the second car.

The 'Force' variable is changed to an array, one for each car...



Santiworld(Posted 2008) [#3]
hey, thanks VIP3R!!...

this is very helpfull!..
thanks!!! :)


Pete Carter(Posted 2008) [#4]
nice demo vip3r :O)


VIP3R(Posted 2008) [#5]
Thanks both, you're welcome :)


Blitzplotter(Posted 2008) [#6]
Cheers viper, this is fantastic timing - I am just about to embark on the path of two vehicle control, on different computers but the logic will be the same within the code. Now I may add a 3rd truck - a computer AI truck that you have to 'race' to the respective end zones, ambitious but why not.......