Path: chuka.playstation.co.uk!news From: "Ben James" Newsgroups: scee.yaroze.freetalk.english Subject: Re: Daft Question Date: Sun, 19 Aug 2001 14:24:59 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 38 Message-ID: <9loeu8$p3k3@www.netyaroze-europe.com> References: <9loc6a$p3k2@www.netyaroze-europe.com> NNTP-Posting-Host: du-009-0056.claranet.co.uk X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 The angle of a vector is the inverse cosine of the dot product. I this case, if x1, y1 are your sprite position and x2 and y2 are your destination coords the equation would be: angle = acos ((x1*x2) + (y1*y2)) I've drunk an awful lot of beer since learning this stuff, so double check it :) Ben "John ( QuietBloke )" wrote in message news:9loc6a$p3k2@www.netyaroze-europe.com... OK.. it might just be the fact its a lazy sunday but Im a bit stumped. If I have a sprite at pos x,y and I want it to move to pos x2,y2. Anyone know what the quickest method of calculating the angle is ? Answers on a postcard please btw Matt... I had a go on the OPM version of RR but Im deliberately steering clear from it at the moment.. its still too addictive. Plus as its becoming obvious by now my reflexes arnt what they used to be so I havent got a score worth submitting ( yet ). The auth code is a great idea btw. Right.. I better get back to my books to see if I can answer my own question. John ( QuietBloke )