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