Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Victor Hernandez Can | |
Old Version | Published before Godot 3 was released. |
Hello! Im BAD at math.
So i was sneaking around and found a “2D Game” that was built around a 3D Space with Orthographic camera. Noww, i was told the game was based on a camera aligned in the z axis with the use of a skewed coordinate system… yeah…
NOW! I did some experimentation and what i came up with was a weird
player’s Y = -sin(angle) * Z where the angle is the inclination of the floor poly. So i tilted a polygon by a set angle and modified Y translation based on its Z translation… It kind of worked on the 120 degrees but other than that, i got nothing.
So how could i come up with a way to have depth on an orthographic projection by hacking space?