Panda3D
physxHeightFieldShapeDesc.h
1 // Filename: physxHeightFieldShapeDesc.h
2 // Created by: enn0x (15Oct09)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef PHYSXHEIGHTFIELDSHAPEDESC_H
16 #define PHYSXHEIGHTFIELDSHAPEDESC_H
17 
18 #include "pandabase.h"
19 
20 #include "physxShapeDesc.h"
21 #include "physx_includes.h"
22 
23 class PhysxHeightField;
24 
25 ////////////////////////////////////////////////////////////////////
26 // Class : PhysxHeightFieldShapeDesc
27 // Description : Descriptor class for PhysxHeightFieldShape.
28 ////////////////////////////////////////////////////////////////////
29 class EXPCL_PANDAPHYSX PhysxHeightFieldShapeDesc : public PhysxShapeDesc {
30 
31 PUBLISHED:
33  INLINE ~PhysxHeightFieldShapeDesc();
34 
35  void set_to_default();
36  INLINE bool is_valid() const;
37 
38  void set_height_field(const PhysxHeightField &hf);
39  void set_dimensions(const LVector3f &dimensions);
40  void set_hole_material(unsigned short index);
41  void set_material_index_high_bits(unsigned short index);
42 
43  unsigned short get_hole_material() const;
44  unsigned short get_material_index_hight_bits() const;
45 
46 public:
47  NxShapeDesc *ptr() const { return (NxShapeDesc *)&_desc; };
48  NxHeightFieldShapeDesc _desc;
49 };
50 
51 #include "physxHeightFieldShapeDesc.I"
52 
53 #endif // PHYSXHEIGHTFIELDSHAPEDESC_H
This is a three-component vector distance (as opposed to a three-component point, which represents a ...
Definition: lvector3.h:100
A height field object.
Descriptor class for PhysxHeightFieldShape.
Abstract base class for shape descriptors.