title: How to impliment Gravity in a game in which the player moves by changing velocity?
body: <p>The game is a tile based 2d platformer.
  Separately handling the velocity and acceleration on the player causes it to bug out.
  This happens cause the player's velocity becomes big enough to phase through the platform.
  How do I go about checking if the player is grounded or not, since I can  change the y velocity of the player to 0.
  Currently I have to manually set the velocity to 0 after every frame and as a result I cant implement gravity</p>