Updated Joystick & Button.md (markdown)
commited
commit
8df6d3d54f0d9ded7ebb9f071eddf8c93846d827
... | ... | @@ -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/>** 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>** input [90, 0, 0]. |