BenEklundCS / The-Land-of-Boars

A platformer game in C++ and Raylib!
1 stars 0 forks source link

MovingPlatform physics issues #3

Open BenEklundCS opened 3 months ago

BenEklundCS commented 3 months ago

When the player is standing on top of a MovingPlatform that is moving up/down, the player jitters when the platform is moving downwards. E.g. the player falls, lands on the platform as it's moving down, their y velocity is set to 0, so then they fall again. This looks incredibly weird when playing.

The solution will be setting the players y velocity to the velocity of the MovingPlatform somehow as would happen in physics

BenEklundCS commented 3 months ago

The moving platform also can "pinch" game objects off the screen due to the collision handler logic - may need to be visited in this issue