Hi, I'm new to all this programming business, and have a set of 4 sprites, each of which can move in any angle (eg. 0 deg, 11.25deg, 22.50deg, etc...)
Regardless of which method* I choose, I use
dx = cos(a)
dy = sin(a)
*My question is, is it best to precalc these values and put them in a data structure (array,etc...) so its less cpu itensive
or
Every frame, do I just do the COS & SIN calcs for each of the 4 sprites, and to hell with the cpu intensity ?
Thanks in advance,
-Dax
Regardless of which method* I choose, I use
dx = cos(a)
dy = sin(a)
*My question is, is it best to precalc these values and put them in a data structure (array,etc...) so its less cpu itensive
or
Every frame, do I just do the COS & SIN calcs for each of the 4 sprites, and to hell with the cpu intensity ?
Thanks in advance,
-Dax