Panda3D
Public Member Functions | Public Attributes

PhysxHeightFieldShapeDesc Class Reference

Descriptor class for PhysxHeightFieldShape. More...

#include "physxHeightFieldShapeDesc.h"

Inheritance diagram for PhysxHeightFieldShapeDesc:
PhysxShapeDesc PhysxEnums ReferenceCount MemoryBase

List of all members.

Public Member Functions

unsigned short get_hole_material () const
 Returns the the material index that designates holes in the height field.
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.
bool is_valid () const
 Returns true if the descriptor is valid.
NxShapeDesc * ptr () const
void set_dimensions (const LVector3f &dimensions)
void set_height_field (const PhysxHeightField &hf)
void set_hole_material (unsigned short index)
 Sets the the material index that designates holes in the height field.
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.
void set_to_default ()
 (re)sets the structure to the default.

Public Attributes

NxHeightFieldShapeDesc _desc

Detailed Description

Descriptor class for PhysxHeightFieldShape.

Definition at line 29 of file physxHeightFieldShapeDesc.h.


Member Function Documentation

unsigned short PhysxHeightFieldShapeDesc::get_hole_material ( ) const

Returns the the material index that designates holes in the height field.

Definition at line 72 of file physxHeightFieldShapeDesc.cxx.

unsigned short PhysxHeightFieldShapeDesc::get_material_index_hight_bits ( ) const

Returns the high 9 bits of this number are used to complete the material indices in the samples.

Definition at line 84 of file physxHeightFieldShapeDesc.cxx.

bool PhysxHeightFieldShapeDesc::is_valid ( ) const [inline, virtual]

Returns true if the descriptor is valid.

Implements PhysxShapeDesc.

Definition at line 44 of file physxHeightFieldShapeDesc.I.

void PhysxHeightFieldShapeDesc::set_hole_material ( unsigned short  index)

Sets the the material index that designates holes in the height field.

This number is compared directly to sample materials. Consequently the high 9 bits must be zero. Default value is 0.

Definition at line 46 of file physxHeightFieldShapeDesc.cxx.

void PhysxHeightFieldShapeDesc::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.

The remaining low 7 bits must be zero. Default value is 0.

Definition at line 60 of file physxHeightFieldShapeDesc.cxx.

void PhysxHeightFieldShapeDesc::set_to_default ( ) [virtual]

(re)sets the structure to the default.

Implements PhysxShapeDesc.

Definition at line 24 of file physxHeightFieldShapeDesc.cxx.

References PhysxManager::mat4_to_nxMat34(), PhysxShapeDesc::set_name(), and LMatrix4f::y_to_z_up_mat().


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations