Path: chuka.playstation.co.uk!news From: Nigel Critten Newsgroups: scee.yaroze.freetalk.english Subject: Re: joystick directions Date: Sat, 13 Jul 2002 11:27:56 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 15 Message-ID: <3D3000AC.4030800@100Tinsoldiers.com> References: <3D28AB1D.8010407@100Tinsoldiers.com> <3D2DCC57.6000807@100Tinsoldiers.com> <3D2DDA0C.5060307@100Tinsoldiers.com> <3D2DE9D8.1030006@100Tinsoldiers.com> <3D2DF7D1.60901@100Tinsoldiers.com> NNTP-Posting-Host: modem-1171.ballistic.dialup.pol.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.0) Gecko/20020530 X-Accept-Language: en-us, en Chris Wallace wrote: > glad it compiled.. but did it work?? > > I did need to jiggle it a bit because there were still cases when it would take the long way, mainly when it was crossing 0/360 but a little if dif_diff > 180 the vector = -vector sorted that out so basically if the dir_diff was great than 180 then it wasn't the shortest distance so go the other way :) and that fixed it. Anyway thanks again Chris, once again this newsgroup saves my sanity Nigel