Question by
TheGrowingOne · Mar 14, 2017 at 06:46 PM ·
physicsinputtouchaddforcesynchronization
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. :)
Comment