OptionaldefaultOptionaldefaultDefault restitution for terrain chain shapes.
OptionaloriginScene-space pixel offset to apply to every body the adapter creates. The chunk's static body is placed here; debris bodies have this offset added to their pixel-space centroid before conversion to meters.
Use this when the rendered terrain is not at scene origin (0, 0)
— e.g. a centered terrain at scene (104, 52) should pass
originPx: { x: 104, y: 52 } so that body positions map back to
scene coordinates correctly.
Default: { x: 0, y: 0 }.
OptionalpixelsPixel-to-meter conversion factor. Default is 32 (Phaser Box2D convention).
The Box2D world this adapter creates bodies in.
Default friction for terrain chain shapes (overridable per material).