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 “marcação,” and that’s a problem because it messes up the physics based on how fast your computer draws frames (FPS). Silly mistake, certo?
Como consertar
Here’s a simple guide to solve this issue with just one variable.
- In the Teardown modding API, it says that the “atualizar” faz 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, e tudo isso).
- Agora, convert that FPS to the “atualizar” by using this formula: fixRatio = PreviousFPS/60
É isso! Easy fix to get your physics back on track.
Isso é tudo o que estamos compartilhando hoje para isso Desmontagem guia. Este guia foi originalmente criado e escrito por KevysNotHeavy. Caso não atualizemos este guia, você pode encontrar a atualização mais recente seguindo este link.