isah_voodoo Posted May 4, 2019 Share Posted May 4, 2019 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 Quote Link to comment Share on other sites More sharing options...
3dome Posted May 4, 2019 Share Posted May 4, 2019 not in front of houdini atm, but I guess you need brackets around (@P-@P2) -> order of operations Quote Link to comment Share on other sites More sharing options...
Sean-R Posted May 4, 2019 Share Posted May 4, 2019 Hi Matt, It looks like it's an order of operations thing. If you wrap @P2-@P in brackets it seems to work fine Quote Link to comment Share on other sites More sharing options...
isah_voodoo Posted May 5, 2019 Author Share Posted May 5, 2019 ah, how could i have missed that. thanks 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.