DorianaCele Posted September 17, 2019 Share Posted September 17, 2019 Hello everyone, I am just wondering how to multiply an scalar with a vector, defined by multiplying the scalar on each elements of that vector. The background of this is quite simple: I wanna shrink some object's size to 10% of its original size. So after I get its size stored in a vector using "current_size = llGetScale();" function, I wanna define a new_size which is 10% of the current size. But simply typing "new_size = 0.1*current_size;" generates an error. And I cannot find the corresponding operator of scalar multiplying vector in knowledge base. I know using the "." operator to quote elements of the vector individually, however I think it is a waste since I do believe there should be some dedicated operator for such very well-defined math calculation. So can anyone tell me what is that operator to multiply a scalar and a vector by multiplying each elements of that vector the scalar? Thank you very much. Link to comment Share on other sites More sharing options...
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now