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