... if not (He is a genius) please use #define in your code. (*) :-)
Look at this:
AbsAcc = fabs(sqrt(AXB*AXB + AYB*AYB + AZB*AZB) - 0.04903325
What is '0.04903325'.... ? Perhaps some months ago you knew it but now.... its LOST... so something like:
#define DV_FOR_GRAVITY (0.04903325)
Could be a good choice... :-)
Please: 'for each unusual constant in your code, use define' (!).
(*)
http://stackoverflow.com/questions/1349542/john-carmacks-unusual-fast-inverse-square-root-quake-iii
No comments:
Post a Comment