Destruir

Como corrigir tick relacionado ao Teardown FPS() Problemas ao fazer a transição para a atualização()

Correção de problemas de física ao mudar de tick para atualização.

The Issue

Oi. So I was just making a mod and was putting constrain functions in tick (it breaks your physics based on FPS DONT BE DUMB LIKE ME)

Então, I figured I’d write a small guide to easily fix this issue with a single variable

If you check the teardown modding api it states that update does 60 refreshes in a second (similar to fps)

So all you need to do is take what the fps was during your testing (same map same code etc etc)

and then convert it to update by doing this

fixRatio = PreviousFPS/60

Este guia sobre Destruir Foi escrito por KevysNotHeavy. Você pode visitar a publicação original neste link. Se você tiver alguma dúvida sobre este guia, por favor, não hesite em contactar-nos aqui.

Sobre o autor