Hi PM forum,
We are big fans of the forum and playmaker, our own game is 90% playmaker,
KnightOut, which is coming to switch and PC later this year.
I have a problem which I been struggling with back and forth. I need some inputs on this. So basically we use RayCasting for our character, when he is in the air we translate him Y to give him gravity when he moves we translate in X. When we run the game it's running at 60 FPS, smooth and everything is good. However, to prevent our character from penetrating the ground we sat the maximum allowed timestep low to 0.02. He is moving every frame, and that made it possible that he couldn't penetrate the ground/floor but the issue arises when people have a bad computer or where streaming it would maybe run at 30 FPS. Since it's limited to every frame it would run in slow motion. Not great.
So by increasing our maximum allowed timestep and set our translation to fixed update, we are able to get the same speed of the character in 30 fps or 15 fps for that sake. However, we now get the problem of penetrating the ground since our character moves really fast he is able, between frames, to go undetected through the floor.
It's a problem we been having again and again and it would be great to find a proper solution. Right now our distance for ground detection is set to 0.4 which means if it's less he will be on the ground, I could make that higher and in that way minimize the issue but I have a feeling it would still happen. I also did a hard fix, that if the character goes through the ground he will pop back up, but it's not a good solution since we have floor levels as well, and he can go through those floors. At least it's not game breaking with that fix.
Cheers
/Dennis