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