Newsgroups: comp.ai.games
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!news2.near.net!howland.reston.ans.net!swrinde!elroy.jpl.nasa.gov!ames!news.hawaii.edu!wtanaka
From: wtanaka@Hawaii.Edu (Wesley Tanaka)
Subject: Choice of direction of movement algorithms
X-Nntp-Posting-Host: uhics.ics.hawaii.edu
Message-ID: <D8pK7J.2xL@news.hawaii.edu>
Sender: news@news.hawaii.edu
Organization: University of Hawaii
X-Newsreader: TIN [version 1.2 PL2]
Date: Wed, 17 May 1995 05:50:07 GMT
Lines: 15

Given two coordinates (lets say there are two sailing ships), and an 
integral grid playing field (i.e. they can only be at (3,4) or (-2,-5) or 
(0,2), not (2.3,3.3))  How can I choose a direction for movement (from 
the 8 cardinal(?) directions) which will take me along a natural straight 
line between the two players?  If I use bresenham's algorithm, the player 
won't go in the (visual) same direction, even if the other one doesn't 
move.


--

Have a Day!

Wesley Tanaka
wtanaka@uhics.ics.hawaii.edu
