15 #ifndef PHYSXDISTANCEJOINTDESC_H 16 #define PHYSXDISTANCEJOINTDESC_H 18 #include "pandabase.h" 20 #include "physxJointDesc.h" 21 #include "physx_includes.h" 34 INLINE ~PhysxDistanceJointDesc();
36 INLINE
void set_to_default();
37 INLINE
bool is_valid()
const;
39 void set_max_distance(
float distance);
40 void set_min_distance(
float distance);
42 void set_flag(PhysxDistanceJointFlag flag,
bool value);
44 float get_max_distance()
const;
45 float get_min_distance()
const;
46 bool get_flag(PhysxDistanceJointFlag flag)
const;
50 NxJointDesc *ptr()
const {
return (NxJointDesc *)&_desc; };
51 NxDistanceJointDesc _desc;
54 #include "physxDistanceJointDesc.I" 56 #endif // PHYSXDISTANCEJOINTDESC_H Descriptor class for distance joint.
Abstract base class for joint descriptors.
Describes a joint spring.