A script that creates a tesseract and rotates it in 4D space.
Impossible geometry?...
This script adds a mathematically accurate tesseract to Amnesia.
A tesseract is a four-dimensional hypercube, analogous to a two-dimensional square and a three-dimensional cube.
The script first defines the 16 vertex positions of the tesseract, then indexes its 32 edges. After that, the tesseract's geometry is rotated within 4D space before being projected into 3D space. The provided script rotates the tesseract about two orthogonal planes by default, although you may easily change that.
If you have any questions regarding the script, you can reach out to me on Discord at saito720.
Pastebin Link