Jump to content

vex function


mir

Recommended Posts

hi there...

i have just started working on VEX...

wat i'm trying to do is that i wanna compare the velocity attributes of two particles...for eg. particle ID 5 and particle ID 10...

how should i go about doing that...

the poppoint() function does not work in VEX!!!it would have made things really simple...

Mir

Link to comment
Share on other sites

Hey,

check out the import function.

int import(string attrib_name; vector &result; int input, pt_num)

you can import any attribute from any point of any input.

so to import the velocity of point 10, you'd:

import("v",newV,0,10)

so the velocity of point 10 will be put into vector `newV`.

Cheers,

Jens

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...