PxCookHeightField

Defined in include/cooking/PxCooking.h

bool PxCookHeightField(const physx::PxHeightFieldDesc &desc, physx::PxOutputStream &stream)

Cooks a heightfield.

The results are written to the stream.

To create a heightfield object there is an option to precompute some of calculations done while loading the heightfield data.

PxCookHeightField() allows a heightfield description to be cooked into a binary stream suitable for loading and performing collision detection at runtime.

See also

PxPhysics.createHeightField()

Parameters
  • desc[in] The heightfield descriptor to read the HF from.

  • stream[in] User stream to output the cooked data.

Returns

true on success