Skip to content

Documentation / @sw-file-lib/three / createSwPhysMeshGroup

Function: createSwPhysMeshGroup() ​

ts
function createSwPhysMeshGroup(
   mesh: PhysData, 
   material: Material, 
   options?: CreateSwPhysMeshOptions): Group;

Defined in: mesh.ts:43

Create a Three.js group from parsed Stormworks phys data.

Each physics section becomes a child mesh using the phys material from the supplied material set.

Parameters ​

ParameterType
meshPhysData
materialMaterial
optionsCreateSwPhysMeshOptions

Returns ​

Group