Geometry · interface

ShellStation

One station along the model, from one end to the other.

Explained in Hello world, Meshes and geometry.

interface ShellStation
import type { ShellStation } from '@driftengine/core';

In depth

Every value is a fraction, so a profile is a shape rather than a size and the same one fits a model of any dimensions. width and roofWidth are of the half width; waist and top are of the height.

Properties

NameTypeDescription
atreadonlynumberWhere along the long axis this station sits, 0 at one end and 1 at the other.
widthreadonlynumberHalf width of the lower mass here.
waistreadonlynumberWhere the lower mass stops and the upper one begins. Equal to top for a single mass.
roofWidthreadonlynumberHalf width of the upper mass. Zero where there is none.
topreadonlynumberThe top of the upper mass, or of the lower one where there is no upper.