xanter Posted April 6, 2019 Share Posted April 6, 2019 (edited) v@myvec = @N*rand(@N); @P=@P + @myvec * ch("my"); it's work but not along splines , it's close to that but somewhere I'm confused beginner in vex so I need some help . imagine peak node but randomized in (along vector) movement . Thank you ! Edited April 6, 2019 by xanter Quote Link to comment Share on other sites More sharing options...
bonsak Posted April 6, 2019 Share Posted April 6, 2019 You might want to replace your first line with: v@myvec = @N*rand(@ptnum); -b Quote Link to comment Share on other sites More sharing options...
xanter Posted April 7, 2019 Author Share Posted April 7, 2019 above code not works , thanks anyway , it was solved , what I wanted was @P += @N*float(rand(@ptnum))*chf("controller"); Quote Link to comment Share on other sites More sharing options...
bonsak Posted April 7, 2019 Share Posted April 7, 2019 Cool. My code was only a replacement for the first line of your code. So the full code should look like this: v@myvec = @N*rand(@ptnum); @P=@P + @myvec * ch("my"); -b 1 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.