Hm this doesn't fix the problem

With each increase oder decrease of the angle, the object moves in a totally different direction..

I know that there are more Cos/Sin function than just Cos()..
..maybe Cos256 is based on something different..