24 _desc.maxDistance = distance;
34 _desc.minDistance = distance;
43 _desc.spring = spring._desc;
50 set_flag(PhysxDistanceJointFlag flag,
bool value) {
56 _desc.flags &= ~(flag);
63 float PhysxDistanceJointDesc::
64 get_max_distance()
const {
66 return _desc.maxDistance;
72 float PhysxDistanceJointDesc::
73 get_min_distance()
const {
75 return _desc.minDistance;
85 value._desc = _desc.spring;
95 return (_desc.flags & flag) ? true :
false;
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
bool get_flag(PhysxDistanceJointFlag flag) const
Return a single DistanceJointFlag flag.
Describes a joint spring.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void set_spring(const PhysxSpringDesc &spring)
Makes the joint springy.
void set_flag(PhysxDistanceJointFlag flag, bool value)
Sets or clears a single DistanceJointFlag flag.
void set_max_distance(float distance)
Sets the maximum rest length of the rope or rod between the two anchor points.
void set_min_distance(float distance)
Sets the minimum rest length of the rope or rod between the two anchor points.