- Home /
The question is answered, right answer was accepted
Function similar to Quaternion.Angle for Scale or Position?
Quaternion.Angle returns the difference between two rotations, but does there exist a similar function to return the difference between two values based on scale?
so if I have a scale Vector (0,4,0)
and a scale Vector (0,2,0)
and I use some kind of function(Vector1, Vector2);
I want it to return the value (0,2,0)
thanks
I'm not sure I understand what you asking. $$anonymous$$aybe add some additional detail or an example? For instance, "Given this and this, I'd like a function that returns this".
UPDATE:
I solved it by using a non-elegant approach:
(Scale.y - transform.localScale.y)
Answer by jgodfrey · Jul 04, 2016 at 02:49 PM
That's just vector subtraction, right? If so, just subtract them...
Vector3 v3 = v1 - v2;
Great. If you're question is answered, "accept" the answer to finalize the question. Thanks.
Hmmm... I see you closed the question, but never actually accepted the answer. You need to press the "Accept" link.
I accepted the answer.
@alexanderameye:
Accepting an answer is the duty of the person who asked the question. Next time you should accept an answer before you close the question with the reason "right answer accepted".