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