Difference between revisions of "Coordinates"

From Minetest Wiki
Jump to navigation Jump to search
(Document traduit en Version 1 - Pbr18)
(rename Minetest to Luanti)
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Le monde [[Minetest/fr|Minetest]] est constitué de cubes. C'est la raison pour laquelle une position dans le monde peut être facilement exprimée en '''coordonnées''' cartésiennes. Ainsi, chaque position d'un cube dans le monde fait référence à trois valeurs X, Y et Z comme ceci : (5, 45, -12)
+
{{Languages}}
  
Les références de cette position sont X=5, Y=45 et Z=-12. Les trois lettres sont appelés des “axes”: Y correspond à la hauteur, X et Z définissent la position horizontale.
+
The [[Luanti]] world is a large cube. And because of this, a position in the world can be easily expressed with Cartesian '''coordinates'''. That is, for each position in the world, there are 3 values X, Y and Z.
  
Les valeurs pour X, Y et Z fonctionnent comme suit:
+
== Notation ==
  
* La longueur d'un cube étant de 1,
+
Coordinates are expressed like this: (5, 45, -12)
* Si vous montez, Y augmente
 
* Si vous descendez, Y diminue
 
* Si vous suivez le soleil, X augmente
 
* Si vous vous déplacez dans le sens opposé au soleil, X diminue
 
* En suivant le soleil en se déplaçant sur la droite,  Z augmente
 
* En suivant le soleil en se déplaçant sur la gauche, Z diminue
 
  
 +
This refers to the position where X=5, Y=45 and Z=-12. The 3 letters are called “axes”: Y is for the height. X and Z are for the horizontal position.
  
Vous pouvez visualiser votre position courante dans l'écran [[debug]] accessible via la touche <kbd>F5</kbd>) bien que cela soit parfois considéré comme de la triche dans plusieurs [[Subgames/fr|jeux]].
+
== Orientation ==
 +
 
 +
The values for X, Y and Z work like this:
 +
 
 +
* If you go up, Y increases
 +
* If you go down, Y decreases
 +
* If you follow the sun, X increases
 +
* If you go to the reverse direction, X decreases
 +
* Look to the sun's direction, then turn 90° to the right and go forwards: Z increases
 +
* Look to the sun's direction, then turn 90° to the left and go forwards: Z decreases
 +
* The side length of a full cube is 1
 +
 
 +
== Finding your coordinates ==
 +
 
 +
=== Debug screen ===
 +
 
 +
You usually can view your coordinates by using the [[debug]] screen (open with <kbd>F5</kbd>).
 +
 
 +
For this to work, the game/server needs to allow this ''or'' you have the “debug” [[Privileges|privilege]].
 +
 
 +
By default, games ''do'' allow you to access the coordinates in the debug screen, so this works most of the time.
 +
 
 +
Some games might choose to hide the coordinates from the debug screen to regular players. Maybe you’re suppoed to “earn” the right to see the coordinates (e.g. with a special item), or maybe the coordinates are hidden completely to make the game more difficult. But, if you have the “debug” privilege, you are guaranteed to have access.
 +
 
 +
=== Mods ===
 +
There are also mods which add tools which, when you carry then, show you the coordinates:
 +
 
 +
* [https://forum.minetest.net/viewtopic.php?t=15247 Orienteering] [orienteering]
 +
* [https://forum.minetest.net/viewtopic.php?t=9373 Compass GPS] [compassgps]

Latest revision as of 23:59, 22 October 2024

Languages Language: English • Deutsch • français

The Luanti world is a large cube. And because of this, a position in the world can be easily expressed with Cartesian coordinates. That is, for each position in the world, there are 3 values X, Y and Z.

Notation

Coordinates are expressed like this: (5, 45, -12)

This refers to the position where X=5, Y=45 and Z=-12. The 3 letters are called “axes”: Y is for the height. X and Z are for the horizontal position.

Orientation

The values for X, Y and Z work like this:

  • If you go up, Y increases
  • If you go down, Y decreases
  • If you follow the sun, X increases
  • If you go to the reverse direction, X decreases
  • Look to the sun's direction, then turn 90° to the right and go forwards: Z increases
  • Look to the sun's direction, then turn 90° to the left and go forwards: Z decreases
  • The side length of a full cube is 1

Finding your coordinates

Debug screen

You usually can view your coordinates by using the debug screen (open with F5).

For this to work, the game/server needs to allow this or you have the “debug” privilege.

By default, games do allow you to access the coordinates in the debug screen, so this works most of the time.

Some games might choose to hide the coordinates from the debug screen to regular players. Maybe you’re suppoed to “earn” the right to see the coordinates (e.g. with a special item), or maybe the coordinates are hidden completely to make the game more difficult. But, if you have the “debug” privilege, you are guaranteed to have access.

Mods

There are also mods which add tools which, when you carry then, show you the coordinates: