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