Discussion:
Bullet collisions
ncj102
2009-06-22 18:34:46 UTC
Permalink
I just started playing around with Robocode a few days ago, and pitted some robots against each other. I noticed that sometimes the bullets collide and then explode. Then I put two "FireTracker" robots, which are stationary and just fire directly at each other, into the arena with the expectation that they would just create fireballs between them as their streams of bullets collide. This didn't happen; the robots shot each other to death.

Now I'm confused...why do the bullets some times explode, but in the situation I created above they didn't?



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Robocode/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/Robocode/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:Robocode-***@yahoogroups.com
mailto:Robocode-***@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
Robocode-***@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
Julian Kent
2009-06-23 13:31:30 UTC
Permalink
Post by ncj102
I just started playing around with Robocode a few days ago, and pitted some robots against each other. I noticed that sometimes the bullets collide and then explode. Then I put two "FireTracker" robots, which are stationary and just fire directly at each other, into the arena with the expectation that they would just create fireballs between them as their streams of bullets collide. This didn't happen; the robots shot each other to death.
Now I'm confused...why do the bullets some times explode, but in the situation I created above they didn't?
Bullets are simulated by lines the length of the bullet velocity (which
is 20 - 3*bullet_power). If these lines cross then the bullets collide.
However, if two bots are firing directly at each other, the lines are in
exactly the same direction, and as such can never cross, so they don't
collide.

Hope this helps,
Julian (AKA Skilgannon on robowiki)


------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Robocode/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/Robocode/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:Robocode-***@yahoogroups.com
mailto:Robocode-***@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
Robocode-***@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/

Continue reading on narkive:
Loading...