Path: chuka.playstation.co.uk!news From: "Matt Verran" Newsgroups: scee.yaroze.freetalk.english Subject: Re: Sprite direction Date: Thu, 30 Aug 2001 17:13:39 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 17 Message-ID: <9mlooj$h6i3@www.netyaroze-europe.com> References: <9mlnpu$h6i2@www.netyaroze-europe.com> NNTP-Posting-Host: host213-122-0-212.btinternet.com X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 You take a vector from the centre of the stick to it's current position, then use ArcTan (discussed in the Maths Functions tread) to get the angle of this vector, which is the rotation of the sprite. Matt Chris Wallace wrote in message news:9mlnpu$h6i2@www.netyaroze-europe.com... > Ok along the sam lines as my last post but the second half. I now have the > distance from the centre sorted, but how to i get a sprite to face in the > same direction as the analoge stick like in robotron? > Cheers, > Chris > >