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): voidimport { setCellStreamOrigin } from '@driftengine/core';Parameters
| Parameter | Type | Description |
|---|---|---|
stream | CellStream | |
x | number | |
y | number | |
z | number |
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.