V
V
Vlad1222021-07-13 20:08:28
C++ / C#
Vlad122, 2021-07-13 20:08:28

How exactly does normalized work?

Stupid question (
I always thought that normalized when entering a Vector into it, gives out its values, but in the form of values ​​​​-1, 0, 1. But when the object began to move obliquely, the values ​​\u200b\u200bof (0.7, 0.7) were given out. Why ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2021-07-13
@Vlad122

https://www.gamedev.ru/terms/Normalization
Normalization produces a vector of unit LENGTH, but the same direction. It is clear that when moving at an angle, the coordinates cannot be units - but the length can.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question