Path: chuka.playstation.co.uk!news From: "JohnT" Newsgroups: scee.yaroze.programming.2d_graphics Subject: Re: Rotation property of sprites Date: Tue, 7 Apr 1998 10:03:25 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 25 Message-ID: <6gcprf$p8n4@chuka.playstation.co.uk> References: <352a3987.6501481@www.netyaroze-europe.com> NNTP-Posting-Host: 194.75.167.131 X-Newsreader: Microsoft Outlook Express 4.72.2106.4 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 David Wagner wrote in message <352a3987.6501481@www.netyaroze-europe.com>... >Hi, > >When I use the rotation property of a sprite, should I limit it to 360 >degree's (ie 360 * 4096) and then flip it back to 0? > >I ask because when I set a sprites rotation to MAX_LONG and then tried >to rotate it 1 unit more, it seemed to cause the yaroze to crash. > > I think the crash may be because of an overflow. I don't know how the PSX handles such conditions. I would advise you to use 0 - 359 degrees (0 = 360) that way you know nothing will go wrong. JohnT ------------------------------------------------ Contact me at http://wwp.mirabilis.com/9461567 Send e-mail to johnt@nettech.demon.co.uk Visit my web site at www.coco.net.uk/johnt ------------------------------------------------