VEX - create vector variable from float variables fails

   8633   2   1
User Avatar
Member
31 posts
Joined: Dec. 2006
Offline
Hi,
If I make a wrangle node and add just this code:

float test = 1.0;
vector testV = {test, test, test};

I get an error.
This works though:
vector testV = {1.0, 1.0, 1.0};

Am I making some really stupid mistake here?
Thanks!
User Avatar
Member
8188 posts
Joined: Sept. 2011
Offline
The first one is not allowed. Use the set() function to create a vector from variables.
User Avatar
Member
31 posts
Joined: Dec. 2006
Offline
Great, thanks. Am new to Vex so keep tripping up on all the little things that are not quite C++!
  • Quick Links