This guide will show you how to easily fix the tick() issue when transitioning into update() in Teardown.
Issue Overview
I was adding constrain functions in the “tick,” and that’s a problem because it messes up the physics based on how fast your computer draws frames (FPS). Silly mistake, 右?
修正方法
Here’s a simple guide to solve this issue with just one variable.
- In the Teardown modding API, it says that the “アップデート” する 60 refreshes in a second, kind of like FPS.
- All you need to do is figure out what your FPS was during testing (same map, same code, そしてそのすべて).
- 今, convert that FPS to the “アップデート” by using this formula: fixRatio = PreviousFPS/60
それでおしまい! Easy fix to get your physics back on track.
これが今日私たちがこの目的で共有するすべてです 取り壊す ガイド. このガイドは元々、次の者によって作成および執筆されました。 KevysNotHeavy. このガイドを更新できなかった場合, これに従って最新のアップデートを見つけることができます リンク.