15 #ifndef PHYSXPULLEYJOINTDESC_H
16 #define PHYSXPULLEYJOINTDESC_H
18 #include "pandabase.h"
20 #include "physxJointDesc.h"
21 #include "physx_includes.h"
34 INLINE ~PhysxPulleyJointDesc();
36 INLINE
void set_to_default();
37 INLINE
bool is_valid()
const;
39 void set_distance(
float distance);
40 void set_stiffness(
float stiffness);
41 void set_ratio(
float ration);
42 void set_pulley(
unsigned int idx,
const LPoint3f pos);
44 void set_flag(PhysxPulleyJointFlag flag,
bool value);
46 float get_distance()
const;
47 float get_stiffness()
const;
48 float get_ratio()
const;
49 bool get_flag(PhysxPulleyJointFlag flag)
const;
50 LPoint3f get_pulley(
unsigned int idx)
const;
54 NxJointDesc *ptr()
const {
return (NxJointDesc *)&_desc; };
55 NxPulleyJointDesc _desc;
58 #include "physxPulleyJointDesc.I"
60 #endif // PHYSXPULLEYJOINTDESC_H
Descriptor class for distance joint.
Abstract base class for joint descriptors.
This is a three-component point in space (as opposed to a three-component vector, which represents a ...