Please try the example code I have posted above - it works pretty well without using collisions but imagine the player jumps - gravity is applied and sometimes the player is moved into the floor.
How to prevent this. PLEASE SOMEONE AMEND THE CODE AND REPOST.
How to prevent this. PLEASE SOMEONE AMEND THE CODE AND REPOST.