Appearance
@bendyline/molen-client/glass
Molen rendering client: three.js wrapper, snapshot sync, interpolation.
ts
import { /* … */ } from '@bendyline/molen-client/glass';Interfaces
GlassVisual
Properties
missingNodes
ts
readonly missingNodes: string[];Methods
dispose()
ts
dispose(): void;Returns
void
update()
ts
update(state, timeSeconds): void;Simulation seconds, so pause, rewind and checkpoint restore reproduce the same debris.
Parameters
state
GlassStateData | undefined
timeSeconds
number
Returns
void
Functions
createGlassVisual()
ts
function createGlassVisual(model, data): GlassVisual;Reusable rectangular glass visualization. Dedicated model panes are hidden only on release; generated crack cells and debris are owned here, never written into shared GLB resources. Debris is cosmetic, ballistic, bounded to eight seconds and has no collision authority. model must carry the owner's simulation transform relative to its scene/origin-shift root.
Parameters
model
Object3D
data
GlassData