Jump to content

subtracting centroid using vex


isah_voodoo

Recommended Posts

Hello,

I have run into a fairly annoying problem that I am able to do in vops but in vex I am not getting the desired results.

I am simply trying to subtract the current position from the objects center and set it to v@v

It looks like it is subtracting something but the vectors don't look like they are pointing directly at the center. I am doing this:

v@P2=point(1,"P", 0);
v@v=@P2-@P*22;

 

I have the centroid being plugged into input two of the wrangle.

What am I missing here ?

Thank you

centroid_sub_vel.hip

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