Jump to content

Wrangle: How to stop point from being transformed with VEX


Krion

Recommended Posts

Hey!

 

I am new to programming, but i would like to know something.

I have two lines of who the length is copied by reference, i want one line b to be of 75% of line a. I have accomplished this by selecting a point of line two in a wrangle and typing:

@P.x = @P.x * 0.75;

But now i want line b to stop when it hits 0.75, while the length of line a continues to increase. I have tried to do this by typing:

while (@P.x == 0.75){
@P.x = 0.75;
}

But that doesn't work. 

How is this done?

 

Thanks. :) 

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