Large worlds · function

setCellStreamOrigin

Move the origin the predicted views are relative to.

Explained in Coordinates and units.

function setCellStreamOrigin(stream: CellStream, x: number, y: number, z: number): void
import { setCellStreamOrigin } from '@driftengine/core';

Parameters

ParameterTypeDescription
streamCellStream
xnumber
ynumber
znumber

In depth

Called with whatever renderOrigin answered for this frame, so the two cannot drift apart. It is a write rather than a parameter to needs because the predictor's shape is Predictor<number> and that interface is Wave 3B's, shared with texture tiles, which have no origin.