Hello all ,
Im new to godot and 3d , i learn each day something new , i really like to understand what im doing and not just copy paste .
so i saw that also the GODOT template and also few online tutorials are using something like :
reading i understand that it is creating 2d vector with negative and positive and related to something that called “Dead zone” .
and then it converted to vector3d .
Does someone knows where i can learn and understand what those 2 lines above does ? tutorials or articles ?
Thanks
When turning a 2d direction to a 3d direction, it depends on the up direction of your object. The code you exhibit assumes that the up direction is (0, 1, 0). In general case, as you define your own up direction, you should use cross product to calculate your correct 3d direction.