15 #ifndef PHYSXREVOLUTEJOINT_H 16 #define PHYSXREVOLUTEJOINT_H 18 #include "pandabase.h" 20 #include "physxJoint.h" 21 #include "physx_includes.h" 40 INLINE ~PhysxRevoluteJoint();
48 void set_flag(PhysxRevoluteJointFlag flag,
bool value);
49 void set_projection_mode(PhysxProjectionMode mode);
51 float get_angle()
const;
52 float get_velocity()
const;
53 bool get_flag(PhysxRevoluteJointFlag flag)
const;
54 PhysxProjectionMode get_projection_mode()
const;
60 INLINE NxJoint *ptr()
const {
return (NxJoint *)_ptr; };
62 void link(NxJoint *jointPtr);
66 NxRevoluteJoint *_ptr;
73 static void init_type() {
74 PhysxJoint::init_type();
75 register_type(_type_handle,
"PhysxRevoluteJoint",
76 PhysxJoint::get_class_type());
79 return get_class_type();
83 return get_class_type();
90 #include "physxRevoluteJoint.I" 92 #endif // PHYSXREVOLUTEJOINT_H Descriptor class for distance joint.
Abstract base class for the different types of joints.
Describes a joint spring.
TypeHandle is the identifier used to differentiate C++ class types.
A joint which behaves in a similar way to a hinge or axel.