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();
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
static PhysxManager * get_global_ptr()
Returns a pointer to the global PhysxManager object.
unsigned int get_reference_count() const
Returns the reference count for shared meshes.
TypeHandle is the identifier used to differentiate C++ class types.