00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef PHYSXHEIGHTFIELDSHAPE_H
00016 #define PHYSXHEIGHTFIELDSHAPE_H
00017
00018 #include "pandabase.h"
00019
00020 #include "physxShape.h"
00021 #include "physx_includes.h"
00022
00023 class PhysxHeightFieldShapeDesc;
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041 class EXPCL_PANDAPHYSX PhysxHeightFieldShape : public PhysxShape {
00042
00043 PUBLISHED:
00044 INLINE PhysxHeightFieldShape();
00045 INLINE ~PhysxHeightFieldShape();
00046
00047 void save_to_desc(PhysxHeightFieldShapeDesc &shapeDesc) const;
00048
00049 public:
00050 INLINE NxShape *ptr() const { return (NxShape *)_ptr; };
00051
00052 void link(NxShape *shapePtr);
00053 void unlink();
00054
00055 private:
00056 NxHeightFieldShape *_ptr;
00057
00058
00059 public:
00060 static TypeHandle get_class_type() {
00061 return _type_handle;
00062 }
00063 static void init_type() {
00064 PhysxShape::init_type();
00065 register_type(_type_handle, "PhysxHeightFieldShape",
00066 PhysxShape::get_class_type());
00067 }
00068 virtual TypeHandle get_type() const {
00069 return get_class_type();
00070 }
00071 virtual TypeHandle force_init_type() {
00072 init_type();
00073 return get_class_type();
00074 }
00075
00076 private:
00077 static TypeHandle _type_handle;
00078 };
00079
00080 #include "physxHeightFieldShape.I"
00081
00082 #endif // PHYSXHEIGHTFIELDSHAPE_H