how can i get vector

Posted By: Omicron_NEGA

how can i get vector - 03/08/09 08:11

first,hi@all
i tried
var scr_pos;
vec_set(scr_pos,(vec_to_screen(sun_pos,camera),)),
but it didnt work,
how can i get those converted vector?

thx !
Posted By: Widi

Re: how can i get vector - 03/09/09 18:40

scr_pos is definied as a var!
VECTOR* scr_pos; you need
Posted By: MrGuest

Re: how can i get vector - 03/11/09 01:17

Originally Posted By: Widi
scr_pos is definied as a var!
VECTOR* scr_pos; you need

use
Code:
VECTOR scr_pos;
vec_set(scr_pos, vec_to_screen(sun_pos, camera.x));


should work, though untested
Posted By: Omicron_NEGA

Re: how can i get vector - 03/15/09 03:47

i tryed, but it doesnt work,
it says "keyword unknown 'VECTOR' "
btw,im using c-script,not LC
any idea?
thx
Posted By: EvilSOB

Re: how can i get vector - 03/15/09 06:13

use var scr_pos[3]; I think, all else the same.
Posted By: Omicron_NEGA

Re: how can i get vector - 03/17/09 01:14

thank you.
now i it's working
© 2024 lite-C Forums