14#ifndef PHYSXSPHERICALJOINT_H
15#define PHYSXSPHERICALJOINT_H
29class EXPCL_PANDAPHYSX PhysxSphericalJoint :
public PhysxJoint {
32 INLINE PhysxSphericalJoint();
33 INLINE ~PhysxSphericalJoint();
38 void set_flag(PhysxSphericalJointFlag flag,
bool value);
41 bool get_flag(PhysxSphericalJointFlag flag)
const;
45 INLINE NxJoint *ptr()
const {
return (NxJoint *)_ptr; };
47 void link(NxJoint *jointPtr);
51 NxSphericalJoint *_ptr;
57 static void init_type() {
58 PhysxJoint::init_type();
60 PhysxJoint::get_class_type());
63 return get_class_type();
67 return get_class_type();
Descriptor class for distance joint.
bool get_flag(PhysxSphericalJointFlag flag) const
Returns the value of a single SphericalJointFlag.
void save_to_desc(PhysxSphericalJointDesc &jointDesc) const
Saves the state of the joint object to a descriptor.
void set_projection_mode(PhysxProjectionMode mode)
Sets the joint projection mode.
void load_from_desc(const PhysxSphericalJointDesc &jointDesc)
Loads the entire state of the joint from a descriptor with a single call.
void set_flag(PhysxSphericalJointFlag flag, bool value)
Sets or clears a single SphericalJointFlag.
PhysxProjectionMode get_projection_mode() const
Returns the current projection mode settings.
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(),...