21 void PhysxHeightField::
22 link(NxHeightField *hfPtr) {
32 void PhysxHeightField::
35 _error_type = ET_released;
42 void PhysxHeightField::
45 nassertv(_error_type == ET_ok);
48 NxGetPhysicsSDK()->releaseHeightField(*_ptr);
55 float PhysxHeightField::
56 get_height(
float x,
float y)
const {
58 nassertr(_error_type == ET_ok, 0.0f);
59 return _ptr->getHeight(x, y);
68 nassertr(_error_type == ET_ok, 0);
69 return _ptr->getReferenceCount();