Quantcast
Channel: Questions in topic: "addforce"
Viewing all articles
Browse latest Browse all 1264

Physics-related touch input (Continuous)

$
0
0
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. :)

Viewing all articles
Browse latest Browse all 1264

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>