PxCreateHeightField

Defined in include/cooking/PxCooking.h

inline physx::PxHeightField *PxCreateHeightField(const physx::PxHeightFieldDesc &desc)

Cooks and creates a heightfield mesh and inserts it into PxPhysics.

Convenience function for standalone objects.

See also

PxCookHeightField() PxPhysics.createHeightField() PxInsertionCallback

Parameters

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

Returns

PxHeightField pointer on success