Hi,
I want to use the UI button to provide the force/torque for the Gameobject(Rigidbody). Initially, I tried with the keyboard button, it worked properly. It gave the force/torque continuously until I press the key and when I release the button, the force/torque went to zero. But the same thing, I tried with the UI Button, it didn’t work like previous. When I press the button, it gave discrete force/torque to the Gameobject, even after holding the button it didn’t give the force/torque to the game object, It made me to click the button again and again to give the force/torque.
Please suggest some other way to give/stop the force/torque to game object continuously until I press/release.