Jump to content

Float into vector (basic)


avizzle

Recommended Posts

I know this must be pretty basic, but for some reason, I can't figure out how to do this.  I'd like to be able to alter one of the values of a vector using a float variable, like this:

float dist = length(@P);
v@force = {0, dist, 0};

To me, this seems like it should work, but always returns a syntax error.  Any tips?

Thanks!

Link to comment
Share on other sites

8 minutes ago, Noobini said:

not fast enough to some....what...nobody got any clue ? but I posted my demand...i mean question...5 mins ago....still no responses ? I'm a busy person...gimme answers now !!!

for (i=0; question<annoying; question++)

{

     if (@answer == 0)

     {

     i@study == 1;

     i@failure = 1;

     i@levelup = 1;

 

    }

continue;

}

Edited by Jesper Rahlff
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...