Posted By: gameplan
Some short not working code - 06/12/12 22:31
Hi,
I have some problems with this code snippet. I get an error message "X is not part of function". This code is part of the rain code from this site:
http://opserver.de/wiki/index.php?title=Basic_Rain/Snow_Effect
vec_set(my.x,vector(
cycle(my.x,camera.x-Weatherbox.x,camera.x+Weatherbox.x),
cycle(my.y,camera.y-Weatherbox.y,camera.y+Weatherbox.y),
cycle(my.z,camera.z-Weatherbox.z,camera.z+Weatherbox.z)));
Maybe it has to do with wdl to lite-c conversion, but I dont have any idee why this lines dont work.
Thanks
I have some problems with this code snippet. I get an error message "X is not part of function". This code is part of the rain code from this site:
http://opserver.de/wiki/index.php?title=Basic_Rain/Snow_Effect
vec_set(my.x,vector(
cycle(my.x,camera.x-Weatherbox.x,camera.x+Weatherbox.x),
cycle(my.y,camera.y-Weatherbox.y,camera.y+Weatherbox.y),
cycle(my.z,camera.z-Weatherbox.z,camera.z+Weatherbox.z)));
Maybe it has to do with wdl to lite-c conversion, but I dont have any idee why this lines dont work.
Thanks