14#ifndef PHYSXHEIGHTFIELDSHAPEDESC_H
15#define PHYSXHEIGHTFIELDSHAPEDESC_H
27class EXPCL_PANDAPHYSX PhysxHeightFieldShapeDesc :
public PhysxShapeDesc {
30 INLINE PhysxHeightFieldShapeDesc();
31 INLINE ~PhysxHeightFieldShapeDesc();
37 void set_dimensions(
const LVector3f &dimensions);
45 NxShapeDesc *ptr()
const {
return (NxShapeDesc *)&_desc; };
46 NxHeightFieldShapeDesc _desc;
void set_material_index_high_bits(unsigned short index)
Sets the high 9 bits of this number are used to complete the material indices in the samples.
unsigned short get_material_index_hight_bits() const
Returns the high 9 bits of this number are used to complete the material indices in the samples.
void set_to_default()
(re)sets the structure to the default.
void set_hole_material(unsigned short index)
Sets the the material index that designates holes in the height field.
unsigned short get_hole_material() const
Returns the the material index that designates holes in the height field.
bool is_valid() const
Returns true if the descriptor is valid.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.