Skip to content
EvilEngine.Formats.Maps

MapVector record struct

public readonly record struct MapVector

Three doubles: a position, a direction, a velocity or a spin, in meters on Godot’s axes with +Y up. Everything a converter writes is in meters, whatever units its game used, so a vector from one game means the same in another.

Assembly
EvilEngine.Formats
Commit
4ff877b1

Members

MapVector constructor

public MapVector(double X, double Y, double Z)

Makes a vector from its three components.

Zero field

public static readonly MapVector Zero

(0, 0, 0).

One field

public static readonly MapVector One

(1, 1, 1), as a scale that leaves things as they are.

X property

public double X { get; init; }

The X component.

Y property

public double Y { get; init; }

The Y component, up.

Z property

public double Z { get; init; }

The Z component.

Length property

public double Length { get; }

The vector’s length.