how to use r2 pressure
I want to use the pressure of the r2 button,
but want to start something while pushing a little bit on the r2 button, and say trigger option 1 and when i push harder trigger option 2 and when i push full to trigger option 3.HOWWW HELP
-
This can be done with the Controller Sensor, 5 Calculator gadgets and 2 AND gates. Connect the R2 output from the Controller Sensor into the A input of all 5 calculator gadgets. I'll name them as Calc.1, Calc.2, Calc.3, Calc.4 and Calc.5, plus AND1, AND2
For reference, in the following passages, '>' means greater than and '<' means less than.
Connect Calc.1 and Calc.2 into AND1. Set Calc.1 as >0 Set Calc.2 as <0.34
Connect Calc.3 and Calc.4 into AND2. Set Calc.3 as >0.33 Set Calc.4 as <0.67
Set Calc.5 as >0.66
So, the output of AND1 is 'light press', the output of AND2 is 'medium press' and the output of Calc.5 is 'heavy press'. You can adjust the calculator settings if you want to change the sensitivity for each action, just make sure there aren't any gaps or overlaps between the sensitivity range. -
thanks
請登入寫評論。