Table of Contents

Enum YAxisMode

Namespace
Thunder.UnitsNET.Vectors.MonoGame
Assembly
Thunder.UnitsNET.Vectors.MonoGame.dll

Controls how the Y axis is mapped between world space and screen space during camera projection.

public enum YAxisMode

Fields

YDown = 0

Screen Y increases downward — the MonoGame and XNA convention. A world point above the camera (positive world Y) maps to a smaller screen Y value. Use this for all standard MonoGame Microsoft.Xna.Framework.Graphics.SpriteBatch rendering.

YUp = 1

Screen Y increases upward — the mathematical convention. No Y-axis flip is applied during projection. Use this when rendering to a surface that already handles Y inversion, such as an OpenGL texture rendered with a flipped projection matrix.

Remarks

In most 2D game frameworks including MonoGame, screen Y increases downward, while physics and world coordinates conventionally have Y increasing upward. Choose YDown (the default) for standard MonoGame rendering.

latest ▼