pyrometal wrote: Tell me if I don't make any sense.
not sure
my ears started to bleed about half way thru the post....
I am not sure what comes first now.... the angle of the chicken ? or the directional_velocity of the egg ?
I assumed, as you did, that engine uses only the xvelocity and yvelocity to move an object in a certain direction...
I also see what you mean about all variables being updated at once before the next redraw and therefore the order would not matter..
anyhow to clarify
if i was to write a routine called directional_velocity myself
I would need first the "speed"....... which is how many pixels to move the sprite next turn
and then i would need the angle to move them
the speed ( or amount of pixels next turn) then becomes a the long side of a Pythagorean ( right-angle triangle formula) which would allow me to calculate how many X , and how many Y pixels to move to get the desired result.
the directional velocity, as such, becomes hypotenuse of a right angle triangle, and the new x and y velocities would be calculated from that, but i would need the angle first.
ie:
y=sin(angle)*directional_velocity
x=cos(angle)*directional_velocity
so on the next redraw move X amount sideways... and Y amount up .. and this results in the required directional velocity at the required angle..
in a nutshell.. you need an angle, and how far to move, then the new x,y can be calculated..
you cannot however calculate an angle... knowing only the velocity ??
therefore methinks.. you are right, in that, the variables are both set before the next redraw,
but I think it is the xvelocity and yvelocities that are set, and not the directional velocity
ie: in draw actor i might say
angle=10 //->this variable would updated during this draw session
directional velocity=15 //- >BUT, this is NOT updated as a frame calculation, as it does not exist as a (usable) variable
(IMHO) but instead is used to calculate two new variables, the new xvelocities and yvelocities which are then updated
then on the next frame the recalculated xvelocity and yvelocity are used..not the directional velocity as it stands
in fact i wouldn't be surprised if the new xvelocities and yvelocities were never recalculated again, 'unless' the directional velocity or angle changed - this is how i would do it..
what do you guys think ? sorry if i sound argumentative, but this seems to be an ongoing source of problems for all of us, so if we can nutit out , sort out how it works, or annoy poor makslane enough with our ramblings, t will probably solve a lot of problems in the long run.
good grief.. I hope someone has got a better idea about this cause now my hair is falling out and my eyes are bleeding
feral
ps; sorry pyro, you probably explained it all perfectly in your post, and I just did not get it in the first place