- Home /
Is there any way to translate normalized vectors into angles?
Is it possible to, say, translate 1,0.2,1 or something of the sort back into angles? Transform.forward is normalized, but I want to know what it is without normalization.
In simple terms, how can I "de-normalize" the vector?
Answer by tuinal · Apr 22, 2019 at 01:38 AM
It's - theoretically - impossible to de-normalise a vector, as the information on magnitude is lost when it's normalised.
I'm not sure what you mean by 'translate into angles', because the angle between two vectors will be the same pre- and post- normalisation. It's very possible to get the angle between a normalised vector and any other vector - but I'm not sure why you'd want a magnitude of transform.forward as it's intended to purely represent a direction (hence the normalisation). It might be better to post the exact problem you're trying to solve?
If it's impossible I won't worry about it. It all ties back to the previous 5 posts I have made trying to create a fixed shotgun spread and being largely unsuccessful.