Panda3D
|
A height field object. More...
#include "physxHeightField.h"
Public Member Functions | |
virtual TypeHandle | force_init_type () |
float | get_height (float x, float y) const |
unsigned int | get_reference_count () const |
Returns the reference count for shared meshes. | |
virtual TypeHandle | get_type () const |
void | link (NxHeightField *ptr) |
void | ls () const |
void | ls (ostream &out, int indent_level=0) const |
NxHeightField * | ptr () const |
void | release () |
void | unlink () |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
This function is declared non-inline to work around a compiler bug in g++ 2.96. |
A height field object.
Height fields work in a similar way as triangle meshes specified to act as height fields, with some important differences:
Triangle meshes can be made of nonuniform geometry, while height fields are regular, rectangular grids. This means that with PhysxHeightField, you sacrifice flexibility in return for improved performance and decreased memory consumption.
Height fields are referenced by shape instances of type PhysxHeightFieldShape.
To create an instance of this class call PhysxManager::create_height_field(), and PhysxHeightField::release() to release it. This is only possible once you have released all of its PhysxHeightFiedShape instances before.
Definition at line 49 of file physxHeightField.h.
unsigned int PhysxHeightField::get_reference_count | ( | ) | const |
Returns the reference count for shared meshes.
Definition at line 77 of file physxHeightField.cxx.
static void PhysxHeightField::init_type | ( | ) | [inline, static] |
This function is declared non-inline to work around a compiler bug in g++ 2.96.
Making it inline seems to cause problems in the optimizer.
Reimplemented from PhysxObject.
Definition at line 77 of file physxHeightField.h.
References PhysxObject::init_type().