Updated Joystick & Button.md (markdown)
commited
commit
78b1c903ff42b44bc424d7cce07e4dcadc83a13c
... | ... | @@ -46,4 +46,4 @@ Setting the display to "Direction" mode results in following : |
46 | 46 | # Advanced Techniques |
47 | 47 | |
48 | 48 | ### Joystick |
49 | Joystick may not give the right outputs you need, this is because it only gives values perpendicular to the where the camera is facing, for example, if you use **XZ** option the values will seem normal if the camera is facing in Y-axis upwards or downwards regardless of angle but if it's facing sidewards or front and backwards it will only output X-axis value if you're looking at Z-axis and vice versa, in this case you could instead use the **Screen** option which outputs XY values instead and ignores where the camera is facing. This will help but also there's still one more problem to solve, it only output values upwards and sidewards now! Well the solution is actually pretty simple!! Just use rotate vector with **<font color = "ffa500">Rotation<font color = "000000"/>** input [90, 0, 0].
|
|
50 | 49 |
+Joystick may not give the right outputs you need, this is because it only gives values perpendicular to the where the camera is facing, for example, if you use **XZ** option the values will seem normal if the camera is facing in Y-axis upwards or downwards regardless of angle but if it's facing sidewards or front and backwards it will only output X-axis value if you're looking at Z-axis and vice versa, in this case you could instead use the **Screen** option which outputs XY values instead and ignores where the camera is facing. This will help but also there's still one more problem to solve, it only output values upwards and sidewards now! Well the solution is actually pretty simple!! Just use rotate vector with **<font color="ffa500">Rotation<font color/>** input [90, 0, 0]. |