- Home /
Physics-related touch input (Continuous)
Goodmorning everybody!
I searched a lot to find a precise answer to my problem but unfourtunately i can't find it. I would like to hear tips from more experienced users.
I want to add a force (rigidbody.addforce) to a rigidbody through touch input in a continuous way, not just like a one-time event. Howerver, as you know, Touch Input must be in Update() and all the physics related things must be in FixedUpdate(). I thinked the solution may be getting the input in Update() and then passing it to FixedUpdate(), but that would lead to occasional Input loss, since Update() and FixedUpdate() are not perfectly and constantly synched. Do you know any solution to solve this problem? Thanks for your attention. :)
Your answer
![](https://koobas.hobune.stream/wayback/20220612112942im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Make a player jump tile 1 Answer
Movement with AddForce: Wrong Direction 2 Answers
Touch Controlled Orbit Camera 0 Answers
Add rotation to rigidbody AddForce? 3 Answers
index out of bounds 6 Answers