Jump to content

using arrays in VEX :blink:


Recommended Posts

How can I use arrays in VEX?.. I`m writing a POP VEX and I need to store each particles position in a vector array but i`m keep getting `ERROR (1039) array declaration is not supported in VEX`

Is that really the case?

Please let me know if you guys know any other way to do this...

Thanks a lot!

:)

Link to comment
Share on other sites

I'm not a big VEX guy, and I don't really know what you are trying to do, but I'll throw this out there anyway.

My understanding is that a POP will only work on one particle at a time, and you have a vector data type for it's position. You can reference the elements in the vector using .x, .y, and .z. You can make a local vector variable or three local floats to manipulate the elements of the position vector if you need. I guess what I'm saying is, with my understanding of how this all works, I don't understand why an array would be required.

Link to comment
Share on other sites

I'll be the one to break the bad news then...

Sadly, its just as the error reads, arrays aren't supported at all in vex at the moment. I believe it has something to do with the SIMD architecture, but you might wanna get a second opinion on that.

Cheers

Marc

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...