Re: How to compute distance between multiple cars

Bernhard Wymann <[email protected]>
Newsgroups gmane.games.torcs.general
Organization wytec
Message-ID <[email protected]>
Hi Anand

I guess this is described here:

http://www.berniw.org/torcs/robot/ch7/opponents.html

If you want any other measure of distance (e.g. euclidean) just adopt 
the opponent class accordingly. The update happens happens in the 
driver, just skim the whole tutorial, everything is there.

Beware, the simulation timestep and the robot calls are not the same, 
see here (but this is just terminology):

torcs.sourceforge.net/index.php?name=Sections&op=viewarticle&artid=30#c6_6

Hope this helps, enjoy:-)

Best regards

Bernhard


On 10/21/2012 09:13 PM, Anand Madhusoodanan wrote:
> Hi,
>      I have managed to add multiple cars in the TORCS simulator and
> having them run in hard coded scenarios. How can I calculate the
> distance between two cars for every simulation time step?     Could
> someone help me out?
>
> Regards,
> Anand.
>
>
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_sfd2d_oct
>
>
>
> _______________________________________________
> Torcs-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/torcs-users
>


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.