25 _desc.projectionDistance = distance;
32 set_flag(PhysxSphericalJointFlag flag,
bool value) {
38 _desc.flags &= ~(flag);
48 _desc.twistSpring = spring._desc;
57 _desc.swingSpring = spring._desc;
66 _desc.jointSpring = spring._desc;
75 nassertv( !axis.is_nan() );
85 _desc.projectionMode = (NxJointProjectionMode)mode;
94 _desc.twistLimit.low = low._desc;
103 _desc.twistLimit.high = high._desc;
112 _desc.swingLimit = limit._desc;
118 float PhysxSphericalJointDesc::
119 get_projection_distance()
const {
121 return _desc.projectionDistance;
127 bool PhysxSphericalJointDesc::
128 get_flag(PhysxSphericalJointFlag flag)
const {
130 return (_desc.flags & flag) ? true :
false;
137 get_twist_spring()
const {
140 value._desc = _desc.twistSpring;
148 get_swing_spring()
const {
151 value._desc = _desc.swingSpring;
159 get_joint_spring()
const {
162 value._desc = _desc.jointSpring;
169 LVector3f PhysxSphericalJointDesc::
170 get_swing_axis()
const {
178 PhysxEnums::PhysxProjectionMode PhysxSphericalJointDesc::
179 get_projection_mode()
const {
181 return (PhysxProjectionMode)_desc.projectionMode;
188 get_twist_limit_low()
const {
191 value._desc = _desc.twistLimit.low;
199 get_twist_limit_high()
const {
202 value._desc = _desc.twistLimit.high;
213 value._desc = _desc.swingLimit;