5 Struct ISO_PROJECTION
gullradriel edited this page 2026-10-09 00:55:18 +02:00

ISO_PROJECTION

Module: GRAPHICS: isometric engine, maps, tiles, ...

Axonometric projection parameters. More...

#include "n_iso_engine.h"

Public Attributes

Name
float tile_lift
vertical pixel offset per height unit
float target_angle
target angle for smooth interpolation (degrees)
float lerp_speed
interpolation speed factor (default 3.0)
float half_w
half-width of a tile in pixels (horizontal extent)
float half_h
half-height of a tile in pixels (vertical extent)
float angle_deg
current projection angle in degrees

Detailed Description

struct ISO_PROJECTION;

Axonometric projection parameters.

Controls how map coordinates are projected to screen coordinates. The half-widths define the diamond shape of each tile.

Public Attributes Documentation

variable tile_lift

float tile_lift;

vertical pixel offset per height unit

variable target_angle

float target_angle;

target angle for smooth interpolation (degrees)

variable lerp_speed

float lerp_speed;

interpolation speed factor (default 3.0)

variable half_w

float half_w;

half-width of a tile in pixels (horizontal extent)

variable half_h

float half_h;

half-height of a tile in pixels (vertical extent)

variable angle_deg

float angle_deg;

current projection angle in degrees