Skip to content

HeightfieldSamples

Defined in: packages/engine/src/gameplay/physics/heightfield.ts:7

The ground as parry’s heightfield reads it: sampled at the ground mesh’s own vertices, which parry splits along the same diagonal as the mesh, so the two surfaces agree everywhere.

Property Type Description
columns number Cells along x.
heights Float32Array A height per vertex, column by column: x outer, z inner.
rows number Cells along z.
scale Vector Metres across, centred on the origin as parry centres it.