Skip to content

Documentation / @sw-file-lib/core / parsePhys

Function: parsePhys() ​

ts
function parsePhys(input: BinaryReaderInput): PhysData;

Defined in: mesh/index.ts:139

Parses a Stormworks physics collision mesh.

Parameters ​

ParameterTypeDescription
inputBinaryReaderInputBinary physics mesh data.

Returns ​

PhysData

The parsed physics mesh.

Throws ​

If the file signature is not "phys".