Follow-up Comment #4, bug #15888 (project wormux):
Hmm, sorry, I did a cosmetics commit yesterday on this code, as I hadn't seen
this comment; I hope I didn't screw some ongoing work.
You mean setting PHYS_DELTA_T to 0.01?
The trouble I see is that we are just emulating the check we actually want:
done at least every n pixels on the trajectory of the object.
What I intended is more something like what is found in ai_idea.cpp (the code
there uses float because it can):
do {
pos = trajectory.GetPositionAt(time);
float pixel_per_second = trajectory.GetSpeedAt(time);
float seconds_per_pixel = 1 / pixel_per_second;
time += STEP_IN_PIXEL*seconds_per_pixel;
} while(IsPositionEmpty(character_to_ignore, pos, object));
It's a bit inexact (we assume linear motion during that time), but this
should be good enough).
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?15888>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wormux-gna mailing list
[email protected]
https://mail.gna.org/listinfo/wormux-gna