why can't I set vector values with expressions?
eg::
myVector = vect( cos( theta), breadth, height )
this gives:
Error, Missing X component of vector
I've got around the problem by calling function below when I want to set vectors, but I don't understand why it only takes numerical values.
eg::
myVector = vect( cos( theta), breadth, height )
this gives:
Error, Missing X component of vector
I've got around the problem by calling function below when I want to set vectors, but I don't understand why it only takes numerical values.
Code:
function vector eVect( float x , float y , float z )
{
local vector v ;
v.x = x ;
v.y = y ;
v.z = z ;
return v ;
}