WASD keys to move Space to jump Arrow keys or cursor to turn/look about I would highly suggest using TurboWarp: https://turbowarp.org/812262473
THIS MAY GLITCH!!! Just a test that I'll probably use in an upcoming 3D platformer It took like a year to actually figure out how to do collisions between a player and a triangle (I spent most of the time trying to intersect triangles and line segments) I would highly suggest using TurboWarp: https://turbowarp.org/812262473 75% my code Mostly built on my 3D engine: https://scratch.mit.edu/projects/556759493/ The collisions use a modified version of my line-triangle intersection: https://scratch.mit.edu/projects/813514286/ @Howtomakeausername for the lighting, the culling, the triangle filler and the z-clipping. @Mathmathmath for teaching me how to do the rotation matrices. The sorting algorithm is insertion sort (implemented by me) Myself, @3TheHedgehogCoder3, for the physics, most of the 3D engine, the sorting algorithm, and movement @griffpatch for the fps stuff My first version of this: https://scratch.mit.edu/projects/691486383/ My last 3D platformer: https://scratch.mit.edu/projects/643238887/ Can someone tell me how to make it faster because it is so slow especially if I want to use it in a 3d platformer. Also for some reason the physics breaks on the purple triangle if you touch the black triangle. I'm pretty sure it's because the y position is no longer an integer so the player's wireframe no longer actually touches the triangle. I tried fixing it with BSP but it doesn't seem to be doing anything, but it might be to do with the collisions breaking on floats.