installSurfaceFrame

function installSurfaceFrame
universe/src/frames.ts:358
installSurfaceFrame(graph: FrameGraph, body: Body, requestedLatitude: number, requestedLongitude: number) → FrameId

Install a local tangent frame on a body's surface.

Axes are west / up / north — right-handed with +Y up, matching the rest of the simulation, so "up" in a landing HUD is the same +Y the renderer uses and nothing has to be flipped at the boundary. West, not east: +X is (-up.z, 0, up.x), the negation of cross(+Y, up), along which geodeticDirection's longitude increases. Landed orientations are stored in this frame and saved, so the axes are part of what a save means.

graphFrameGraph
Undocumented
bodyBody
Undocumented
requestedLatitudenumber
Undocumented
requestedLongitudenumber
Undocumented
ReturnsFrameId