I finally got a cube rotating using rotation matrix! W, A, S, D, Q, E, R, F. And arrow keys. Press space to start. Next I am working on collision sensing, and bug fixes. Unfortunately I didn't add depth sorting so sometimes the side that's on the back may seem in front. This is also my first 100% by me 3D engine.
Credit to Khan Academy for the java script tutorial for the rotation matrix. See here: https://www.khanacademy.org/computing/computer-programming/programming-games-visualizations/programming-3d-shapes/a/rotating-3d-shapes - Reverse controls and imaging bug Turn 180 to the x, then 180 up. 6/11/24 - Reposted Everything else by @serpatch Recent Updates! Fixed Controls. Added Textures!