00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef PHYSXDISTANCEJOINTDESC_H
00016 #define PHYSXDISTANCEJOINTDESC_H
00017
00018 #include "pandabase.h"
00019
00020 #include "physxJointDesc.h"
00021 #include "physx_includes.h"
00022
00023 class PhysxSpringDesc;
00024
00025
00026
00027
00028
00029
00030 class EXPCL_PANDAPHYSX PhysxDistanceJointDesc : public PhysxJointDesc {
00031
00032 PUBLISHED:
00033 INLINE PhysxDistanceJointDesc();
00034 INLINE ~PhysxDistanceJointDesc();
00035
00036 INLINE void set_to_default();
00037 INLINE bool is_valid() const;
00038
00039 void set_max_distance(float distance);
00040 void set_min_distance(float distance);
00041 void set_spring(const PhysxSpringDesc &spring);
00042 void set_flag(PhysxDistanceJointFlag flag, bool value);
00043
00044 float get_max_distance() const;
00045 float get_min_distance() const;
00046 bool get_flag(PhysxDistanceJointFlag flag) const;
00047 PhysxSpringDesc get_spring() const;
00048
00049 public:
00050 NxJointDesc *ptr() const { return (NxJointDesc *)&_desc; };
00051 NxDistanceJointDesc _desc;
00052 };
00053
00054 #include "physxDistanceJointDesc.I"
00055
00056 #endif // PHYSXDISTANCEJOINTDESC_H