If the player falls through the floor, add a collision and static rigidbody to the floor. Also, turn of all the angular factors on the player’s rigidbody.
There is a collision box on both the player and the ground along with dynamic rigidbody on player and static on ground. I have turned off angular factor and now it has stopped tilting but it still goes through the ground.(I haven’t updated this on the demo yet.)
I’m not using the editor. I’m writing the code myself and the entire project is on GitHub(linked above). I’m not sure but maybe you can import it into the editor but I haven’t tried that.
I’ve updated the source but the demo doesn’t seem to have updated yet. My touch-input.js is very messy right now and I am planning to rewrite the entire thing so please don’t mind that. The only important line in touch input should be lines 120-121
One thing to note is that my rigid body halfExtents for the ground are [0,0,0]. My player falls and stops on the ground and when I apply force it falls through. I tried increasing halfExtents but it had no effect.