Question about vector math functions
Hi Folks-
I need to get the x, y and z components from some of the vectors in my simulation, so that agents can react based only on the value of, say, the x component of another agent's movement vector.
I've read through the manual, and I can't see a way to get these vector component values into int variables using the vector functions provided. I thought I might be able to use matrix multiplication to solve the problem, but I can only think of a way to do this using 1x3 matrixes, not 3x3 matrixes.
I feel like I must be missing something obvious here. Any suggestions?
Thanks!
Jen
»
Submitted by jens on Fri, 2006-08-25 14:53.
- Login to post comments

Question about vector math functions
To get the a component of a vector, use the notation ::x, ::y or ::z
- jon
Question about vector math functions
Thanks Jon- I knew there had to be a way. Much appreciated.