As I was updating my custom camera and movement scripts and I noticed that when I was printing the direction attribute it seemed to print a random decimal number but when I went into debug mode and checked the real value it was something else.
The local variable ‘a’ is there so the debugger doesn’t go out of scope and free the memory of direction before I can see it.
The direction is being added to unit vectors only so it should be showing a unit vector but as you can see when outputting the attribute in anyway it shows a random decimal number.