Login

Fancade Wiki

Updated Joystick & Button.md (markdown)

... ...
@@ -13,9 +13,9 @@ Adds joystick/s in the screen, unlike most of the blocks in **Control** tab, Joy
13 13
#### Settings :
14 14
\- Direction: Most useful when [[perspective]] is active, changes the direction "Joy Dir" outputs:
15 15
16
* XZ - Outputs XZ vector values perpendicular to screen (Assuming that the screen is facing straight to a certain axis)
16
* XZ - Outputs XZ vector values perpendicular to camera direction (While assuming that the screen is always facing straight to a certain axis)
17 17
18
* Screen - Similar to XZ option but instead outputs XY vector values
18
* Screen - Outputs XY vector values regardless of where the camera is facing.
19 19
20 20
21 21
# Button
... ...
@@ -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
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 value of [90,0,0].
Fancade Wiki