sprite rotation struct and atanLerp missing

Post Reply
User avatar
vuurrobin
Posts: 219
Joined: Fri Jul 11, 2008 8:49 pm
Location: The Netherlands
Contact:

sprite rotation struct and atanLerp missing

Post by vuurrobin » Fri Aug 28, 2009 4:28 pm

in sprite.h, the struct SpriteRotation has hdy as second element and vdx as thirth. but in memory vdx is the second element and hdy the thirth. vdx and hdy should be switched so the right variable is on the right place. you might also want to check the rotatescale and affineMatrix functions to see still work properly.

the bg_transform struct does have it right, but it uses xdx, ydx, xdy, ydy as names, which is pretty confusing. you may want to change that to hdx, vdx, hdy, vdy so its less confusing and more consistend.


there are functions for asinLerp and acosLerp, but the atanLerp is missing. there is some code in trig.c, but its commented out with 'todo: implement' on the first line. can someone implement it?

Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests