14#ifndef PHYSXDISTANCEJOINTDESC_H
15#define PHYSXDISTANCEJOINTDESC_H
27class EXPCL_PANDAPHYSX PhysxDistanceJointDesc :
public PhysxJointDesc {
30 INLINE PhysxDistanceJointDesc();
31 INLINE ~PhysxDistanceJointDesc();
39 void set_flag(PhysxDistanceJointFlag flag,
bool value);
41 float get_max_distance()
const;
42 float get_min_distance()
const;
43 bool get_flag(PhysxDistanceJointFlag flag)
const;
47 NxJointDesc *ptr()
const {
return (NxJointDesc *)&_desc; };
48 NxDistanceJointDesc _desc;
void set_max_distance(float distance)
Sets the maximum rest length of the rope or rod between the two anchor points.
bool get_flag(PhysxDistanceJointFlag flag) const
Return a single DistanceJointFlag flag.
void set_to_default()
(re)sets the structure to the default.
bool is_valid() const
Returns true if the descriptor is valid.
void set_spring(const PhysxSpringDesc &spring)
Makes the joint springy.
void set_min_distance(float distance)
Sets the minimum rest length of the rope or rod between the two anchor points.
void set_flag(PhysxDistanceJointFlag flag, bool value)
Sets or clears a single DistanceJointFlag flag.
Describes a joint spring.
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.