boradayioglu Posted May 12, 2003 Share Posted May 12, 2003 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! Quote Link to comment Share on other sites More sharing options...
Mcronin Posted May 12, 2003 Share Posted May 12, 2003 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. Quote Link to comment Share on other sites More sharing options...
Marc Posted May 12, 2003 Share Posted May 12, 2003 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 Quote Link to comment Share on other sites More sharing options...
boradayioglu Posted May 12, 2003 Author Share Posted May 12, 2003 Oh noooo!!! Do you know any other way to do a similiar thing without using arrays than? Thanks for replys guys... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.