Quote Originally Posted by Delfi
err, what do you mean?? there is a problem in matrix math, the goal is to get the code translated into pascal and make it work, There is a bug in some math routines or some other code that i must have translated errorenous, i couldn't locate the error after 2 rewrites. I could use the c dll if i wanted to, and i can use it from delphi (see one of example apps) so that header has no byte alingment problem, but the one used in delphi translated project doesn't matter what alingment it has, since it is all native to delphi / fpc, isn't it?

savage: there's now an additional 100€ award, not just copy of delphi 1.
alignment still matters, but I clearly see no reason why you just cannot use the c dll after fixing alignment issues or use C++ builder to compile it into .obj files and link them into your Delphi code (FPC supports this?)...translating that code into delphi means translating part of newton into delphi which is kinda awkward (eg. dVector, dMatrix, dQuaternion)...