Discussion:
Lateral Velocity
Josh
2010-03-20 13:50:19 UTC
Permalink
Hello Robocoders,

I've got a question that I would like to ask. I am in the process of trying to understand linear targeting. From reading at Robowiki, it seems I must start with the "lateral velocity."

The given formula for lateral velocity is:
-----------------------------------------------------------------------

e.getVelocity() * Math.sin(e.getHeadingRadians() - absoluteBearing).

-----------------------------------------------------------------------
where e is the ScannedRobotEvent instance.

I find it hard to understand this equation. Any help would be very helpful!


Thanks for reading,
Josh



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

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:
Robocode-***@yahoogroups.com
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/
Nat Pavasant
2010-03-20 14:13:55 UTC
Permalink
Draw a triangle. One line is parallel to your robot. One line is the
distance enemy move in one tick (the velocity). The should make it
clear.

Next time if you don't understand thing on the wiki, you can ask it on
the wiki discussion page instead of this group. There are larger
Robocode's user there than here.

- Nat


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

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:
Robocode-***@yahoogroups.com
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/
Josh
2010-03-21 04:00:11 UTC
Permalink
alright, thank you for your help!
Post by Nat Pavasant
Draw a triangle. One line is parallel to your robot. One line is the
distance enemy move in one tick (the velocity). The should make it
clear.
Next time if you don't understand thing on the wiki, you can ask it on
the wiki discussion page instead of this group. There are larger
Robocode's user there than here.
- Nat
------------------------------------

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:
Robocode-***@yahoogroups.com
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/

Loading...