Why is Y the vertical axis and not Z ?

User avatar
fwhcat
Member
 
Posts: 14
Joined: Thu Aug 04, 2016 14:36
GitHub: fwhcat
IRC: fwhcat
In-game: fwhcat

Why is Y the vertical axis and not Z ?

by fwhcat » Mon Sep 05, 2016 11:57

Hello,
just a random question that I have kept for years:

Why in minetest are y and z reversed? In all maths lessons I had and in all games I have played, x and y were always used on the plane and z is used for height.

Is this by choice? and why?

(don't hesitate to correct my english, i'm french).
 

User avatar
Naj
Member
 
Posts: 170
Joined: Sat Sep 19, 2015 21:14
GitHub: pyrollo
In-game: naj

Re: Why is Y the vertical axis and not Z ?

by Naj » Mon Sep 05, 2016 12:18

On computer, X is usualy on horizontal axis, Y on vertical axis and Z stands for depth. I guess minetest coordinate system inherited that.
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: Why is Y the vertical axis and not Z ?

by rubenwardy » Mon Sep 05, 2016 12:21

It's because the screen is vertical, and is the x y plane. Nearly all games and rendering engines use this convention
 


Return to Minetest General

Who is online

Users browsing this forum: No registered users and 12 guests

cron