15 #include "physxHeightField.h" 24 void PhysxHeightField::
25 link(NxHeightField *hfPtr) {
37 void PhysxHeightField::
40 _error_type = ET_released;
49 void PhysxHeightField::
52 nassertv(_error_type == ET_ok);
55 NxGetPhysicsSDK()->releaseHeightField(*_ptr);
64 float PhysxHeightField::
65 get_height(
float x,
float y)
const {
67 nassertr(_error_type == ET_ok, 0.0f);
68 return _ptr->getHeight(x, y);
79 nassertr(_error_type == ET_ok, 0);
80 return _ptr->getReferenceCount();
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.