14 #ifndef PHYSXREVOLUTEJOINT_H
15 #define PHYSXREVOLUTEJOINT_H
45 void set_flag(PhysxRevoluteJointFlag flag,
bool value);
46 void set_projection_mode(PhysxProjectionMode mode);
48 float get_angle()
const;
49 float get_velocity()
const;
50 bool get_flag(PhysxRevoluteJointFlag flag)
const;
51 PhysxProjectionMode get_projection_mode()
const;
56 INLINE NxJoint *ptr()
const {
return (NxJoint *)_ptr; };
58 void link(NxJoint *jointPtr);
62 NxRevoluteJoint *_ptr;
68 static void init_type() {
69 PhysxJoint::init_type();
71 PhysxJoint::get_class_type());
74 return get_class_type();
78 return get_class_type();
Abstract base class for the different types of joints.
Descriptor class for distance joint.
A joint which behaves in a similar way to a hinge or axel.
Describes a joint spring.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...