lucaspedrajas Posted May 4, 2019 Share Posted May 4, 2019 Hello guys , I cant find an attribute or something in vellum to make it avoid movement in one particular angle or i'm missing it. I want to simulate a spring in a 2d domain I only want to run the simulation in Z and X and avoid movement in Y axis Iwant to prevent this from happening: Is it possible ? thank you all in advance for your help!! Quote Link to comment Share on other sites More sharing options...
ryew Posted May 4, 2019 Share Posted May 4, 2019 Why not just place box-shaped colliders on either side of the spring geometry to restrict its movement? Quote Link to comment Share on other sites More sharing options...
3dome Posted May 4, 2019 Share Posted May 4, 2019 (edited) I'd use a popwrangle and set v@force.y = 0; and just in case aswell v@v.y = 0; if it doesn't work, you might want to dive into the solver and do that stuff at the right position Edited May 4, 2019 by 3dome Quote Link to comment Share on other sites More sharing options...
KarlRichter Posted May 6, 2019 Share Posted May 6, 2019 If you use a sop solver to explicitly set the y point values of the cloth geo and an additional sop solver to do the same to the constraint geo, you can very effectively constrain your sim to just two axis. See attached for example. BTW, it may seem that you only need to manipulate the "Geometry" data, and in the simple attached demo that seems to work fine, however I have found that with complex vellum sims you really need to run over the "ConstraintGeometry" data as well. vallum_x_constraint.hip 2 Quote Link to comment Share on other sites More sharing options...
Atom Posted May 7, 2019 Share Posted May 7, 2019 Thanks for the setup, Karl, that works. After taking a look at your VOP network I managed to reduce it to a single line of VEX code. v@P = set(@rest.x,@P.y, @P.z); So you could swap the constraint to any axis, by shuffling the values. Quote Link to comment Share on other sites More sharing options...
lucaspedrajas Posted May 12, 2019 Author Share Posted May 12, 2019 woow amazing !! sorry for repply one week later , but yeah! thak you guys for the enlightening !!! you're awesome! Quote Link to comment Share on other sites More sharing options...
UncleBob Posted November 25, 2021 Share Posted November 25, 2021 On 5/6/2019 at 7:41 PM, KarlRichter said: If you use a sop solver to explicitly set the y point values of the cloth geo and an additional sop solver to do the same to the constraint geo, you can very effectively constrain your sim to just two axis. See attached for example. BTW, it may seem that you only need to manipulate the "Geometry" data, and in the simple attached demo that seems to work fine, however I have found that with complex vellum sims you really need to run over the "ConstraintGeometry" data as well. vallum_x_constraint.hip Hi Karl, I hope you don't mind me asking about this ancient thread, I downloaded your example file, but I can't see where exactly you set the Y point values? I see the two SOP solvers in the DOP network, but where in the sop Solvers are you setting the values? Incidentally, I am brand new to Houdini...so.. thank you in advance for your patient..ha! 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.