This guide will show you how to easily fix the tick() issue when transitioning into update() in Teardown.
Présentation du problème
I was adding constrain functions in the « cocher, » et ça’s a problem because it messes up the physics based on how fast your computer draws frames (FPS). Silly mistake, droite?
Comment réparer
Ici’s a simple guide to solve this issue with just one variable.
- In the Teardown modding API, it says that the « mise à jour » fait 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, et tout ça).
- Maintenant, convert that FPS to the « mise à jour » by using this formula: fixRatio = PreviousFPS/60
Que’s'asseoir! Easy fix to get your physics back on track.
C'est tout ce que nous partageons aujourd'hui pour cela Démolir guide. Ce guide a été initialement créé et rédigé par KevysNotHeavy. Si nous ne parvenons pas à mettre à jour ce guide, vous pouvez trouver la dernière mise à jour en suivant ceci lien.