Login

Fancade Wiki

Updated Joystick and Button.md (markdown)

... ...
@@ -28,7 +28,8 @@ Adds joystick(s) in the screen. Unlike most of the blocks in Control tab, Joysti
28 28
29 29
## Notes
30 30
31
If you use the **XZ** option, Joystick may not give the right outputs you need, because it only gives values perpendicular to the where the camera is facing. 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 ignores where the camera is facing. This will help but also there's still one more problem to solve: it only outputs 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].
31
If you use the **XZ** option, Joystick may not give the right outputs you need, because it only gives values perpendicular to the where the camera is facing. 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.
32
In this case you could instead use the **Screen** option which ignores where the camera is facing. This will help but also there's still one more problem to solve: it only outputs 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].
32 33
33 34
[[Uploads/Joystick_Solution.jpg]]
34 35
Fancade Wiki