Table of Contents

Class TrueNorth

Namespace
FishMMO.Client
Assembly
FishMMO.Client.dll

Which way the planet's north lies in a scene, for the maps' compasses.

public static class TrueNorth
Inheritance
TrueNorth
Inherited Members

Remarks

The maps are drawn with the scene's +Z up and call that "world north" (marker facings, MapViewTransform), but a scene sits on its planet turned by its atlas heading (which way +Z faces, clockwise from north), so the planet's north is somewhere else on the map. This gives it as a bearing in the maps' own terms, degrees clockwise from +Z, measured where the player stands (NorthBearingAt(Vector3): near a pole it turns across a scene). A scene with no world entry (no world design installed, or a scene not in it) keeps +Z as north.

Methods

BearingAt(Scene, Vector3)

Degrees clockwise from the scene's +Z to the planet's north at a position in a scene; 0 where unknown.

public static float BearingAt(Scene scene, Vector3 position)

Parameters

scene Scene
position Vector3

Returns

float