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
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
TesUnitsPerExteriorCell
Game file units along one side of an exterior cell.
public const float TesUnitsPerExteriorCell = 4096
Field Value
UnrealYawOffsetDegrees
Degrees added to a game file rotation to turn it into a Rotation.
public const float UnrealYawOffsetDegrees = -90
Field Value
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
ToUnrealLocation(Vector3)
A position from the game files, as a Position.
public static Vector3 ToUnrealLocation(Vector3 tesPosition)
Parameters
tesPosition Vector3
Returns
ToUnrealYawDegrees(float)
A Z rotation from the game files, in radians, as a Rotation.
public static float ToUnrealYawDegrees(float tesRotationZRadians)
Parameters
tesRotationZRadians float