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