15 #include "physxDistanceJointDesc.h"
16 #include "physxSpringDesc.h"
27 _desc.maxDistance = distance;
39 _desc.minDistance = distance;
51 _desc.spring = spring._desc;
60 set_flag(PhysxDistanceJointFlag flag,
bool value) {
66 _desc.flags &= ~(flag);
75 float PhysxDistanceJointDesc::
76 get_max_distance()
const {
78 return _desc.maxDistance;
86 float PhysxDistanceJointDesc::
87 get_min_distance()
const {
89 return _desc.minDistance;
101 value._desc = _desc.spring;
113 return (_desc.flags & flag) ?
true :
false;
Describes a joint spring.
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.
bool get_flag(PhysxDistanceJointFlag flag) const
Return a single DistanceJointFlag flag.
void set_min_distance(float distance)
Sets the minimum rest length of the rope or rod between the two anchor points.