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