14#ifndef PHYSXREVOLUTEJOINT_H
15#define PHYSXREVOLUTEJOINT_H
33class EXPCL_PANDAPHYSX PhysxRevoluteJoint :
public PhysxJoint {
36 INLINE PhysxRevoluteJoint();
37 INLINE ~PhysxRevoluteJoint();
45 void set_flag(PhysxRevoluteJointFlag flag,
bool value);
50 bool get_flag(PhysxRevoluteJointFlag flag)
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();
Descriptor class for distance joint.
float get_velocity() const
Retrieves the revolute joint angle's rate of change (angular velocity).
void set_motor(const PhysxMotorDesc &motor)
Sets motor parameters for the joint.
float get_angle() const
Retrieves the current revolute joint angle.
void save_to_desc(PhysxRevoluteJointDesc &jointDesc) const
Saves the state of the joint object to a descriptor.
void set_flag(PhysxRevoluteJointFlag flag, bool value)
Sets or clears a single RevoluteJointFlag.
void set_limits(const PhysxJointLimitDesc &low, const PhysxJointLimitDesc &high)
Sets angular joint limits.
void set_spring(const PhysxSpringDesc &spring)
Sets spring parameters.
bool get_flag(PhysxRevoluteJointFlag flag) const
Returns the value of a single RevoluteJointFlag.
void load_from_desc(const PhysxRevoluteJointDesc &jointDesc)
Loads the entire state of the joint from a descriptor with a single call.
void set_projection_mode(PhysxProjectionMode mode)
Sets the joint projection mode.
PhysxProjectionMode get_projection_mode() const
Retrieves the joints projection mode.
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(),...