Skip to main content
Version: 1.0.0

Class TesUnrealSpace

Namespace: ReadyM.Relay.Common.Oblivion
Assembly: ReadyM.Relay.Common.Oblivion.dll

Converts positions and rotations from the game files to the world space the SDK uses.

public static class TesUnrealSpace

Inheritance​

object ← TesUnrealSpace

Inherited Members​

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Fields​

CentimetersPerTesUnit​

Centimeters in one game file unit.

public const float CentimetersPerTesUnit = 1.4285715

Field Value​

float

TesUnitsPerExteriorCell​

Game file units along one side of an exterior cell.

public const float TesUnitsPerExteriorCell = 4096

Field Value​

float

UnrealYawOffsetDegrees​

Degrees added to a game file rotation to turn it into a Rotation.

public const float UnrealYawOffsetDegrees = -90

Field Value​

float

Methods​

ToExteriorCellCoordinate(float)​

The exterior grid square a game file X or Y coordinate falls in.

public static int ToExteriorCellCoordinate(float tesCoordinate)

Parameters​

tesCoordinate float

Returns​

int

ToUnrealLocation(Vector3)​

A position from the game files, as a Position.

public static Vector3 ToUnrealLocation(Vector3 tesPosition)

Parameters​

tesPosition Vector3

Returns​

Vector3

ToUnrealYawDegrees(float)​

A Z rotation from the game files, in radians, as a Rotation.

public static float ToUnrealYawDegrees(float tesRotationZRadians)

Parameters​

tesRotationZRadians float

Returns​

float

  • Fields
    • CentimetersPerTesUnit
    • TesUnitsPerExteriorCell
    • UnrealYawOffsetDegrees
  • Methods
    • ToExteriorCellCoordinate(float)
    • ToUnrealLocation(Vector3)
    • ToUnrealYawDegrees(float)