Calculating new position with initial velocity and how long the velocity was used?

I’m planning to make an anti cheat for my game, the first anti cheat i am planning to make is an anti tp. However, in my game i use velocities to push players quite far and thought up an idea that i could substitute the cached position with a predicted position. The problem is calculating this predicted position, how would I do this or is this a bad idea and there are better methods?

2 Likes

I would check a players position and see what their new position is. if the position difference is greater than around 200 then it is most likely a teleporter.

2 Likes

but this can be bypassed nontheless if its lower than 200?

1 Like

yes it can, but assuming you do it every frame, you can do around 50 - 75

1 Like

I don’t plan to do it under stepped that will hog memory will it not?

1 Like

honestly, it all depends on how you do it. I don’t work much in this category but this would be the more effective way to do it along with not kicking people for no reason.