You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (!Math::is_equal_approx(p_value, DEFAULT_BIAS)) {
196
+
if (!Math::is_equal_approx(p_value, CONE_TWIST_DEFAULT_BIAS)) {
197
197
WARN_PRINT(vformat("Cone twist joint bias is not supported when using Jolt Physics. Any such value will be ignored. This joint connects %s.", _bodies_to_string()));
198
198
}
199
199
} break;
200
200
case PhysicsServer3D::CONE_TWIST_JOINT_SOFTNESS: {
201
-
if (!Math::is_equal_approx(p_value, DEFAULT_SOFTNESS)) {
201
+
if (!Math::is_equal_approx(p_value, CONE_TWIST_DEFAULT_SOFTNESS)) {
202
202
WARN_PRINT(vformat("Cone twist joint softness is not supported when using Jolt Physics. Any such value will be ignored. This joint connects %s.", _bodies_to_string()));
203
203
}
204
204
} break;
205
205
case PhysicsServer3D::CONE_TWIST_JOINT_RELAXATION: {
206
-
if (!Math::is_equal_approx(p_value, DEFAULT_RELAXATION)) {
206
+
if (!Math::is_equal_approx(p_value, CONE_TWIST_DEFAULT_RELAXATION)) {
207
207
WARN_PRINT(vformat("Cone twist joint relaxation is not supported when using Jolt Physics. Any such value will be ignored. This joint connects %s.", _bodies_to_string()));
case PhysicsServer3D::G6DOF_JOINT_LINEAR_LIMIT_SOFTNESS: {
353
-
if (!Math::is_equal_approx(p_value, DEFAULT_LINEAR_LIMIT_SOFTNESS)) {
353
+
if (!Math::is_equal_approx(p_value, G6DOF_DEFAULT_LINEAR_LIMIT_SOFTNESS)) {
354
354
WARN_PRINT(vformat("6DOF joint linear limit softness is not supported when using Jolt Physics. Any such value will be ignored. This joint connects %s.", _bodies_to_string()));
355
355
}
356
356
} break;
357
357
case PhysicsServer3D::G6DOF_JOINT_LINEAR_RESTITUTION: {
358
-
if (!Math::is_equal_approx(p_value, DEFAULT_LINEAR_RESTITUTION)) {
358
+
if (!Math::is_equal_approx(p_value, G6DOF_DEFAULT_LINEAR_RESTITUTION)) {
359
359
WARN_PRINT(vformat("6DOF joint linear restitution is not supported when using Jolt Physics. Any such value will be ignored. This joint connects %s.", _bodies_to_string()));
360
360
}
361
361
} break;
362
362
case PhysicsServer3D::G6DOF_JOINT_LINEAR_DAMPING: {
363
-
if (!Math::is_equal_approx(p_value, DEFAULT_LINEAR_DAMPING)) {
363
+
if (!Math::is_equal_approx(p_value, G6DOF_DEFAULT_LINEAR_DAMPING)) {
364
364
WARN_PRINT(vformat("6DOF joint linear damping is not supported when using Jolt Physics. Any such value will be ignored. This joint connects %s.", _bodies_to_string()));
case PhysicsServer3D::G6DOF_JOINT_ANGULAR_LIMIT_SOFTNESS: {
396
-
if (!Math::is_equal_approx(p_value, DEFAULT_ANGULAR_LIMIT_SOFTNESS)) {
396
+
if (!Math::is_equal_approx(p_value, G6DOF_DEFAULT_ANGULAR_LIMIT_SOFTNESS)) {
397
397
WARN_PRINT(vformat("6DOF joint angular limit softness is not supported when using Jolt Physics. Any such value will be ignored. This joint connects %s.", _bodies_to_string()));
398
398
}
399
399
} break;
400
400
case PhysicsServer3D::G6DOF_JOINT_ANGULAR_DAMPING: {
401
-
if (!Math::is_equal_approx(p_value, DEFAULT_ANGULAR_DAMPING)) {
401
+
if (!Math::is_equal_approx(p_value, G6DOF_DEFAULT_ANGULAR_DAMPING)) {
402
402
WARN_PRINT(vformat("6DOF joint angular damping is not supported when using Jolt Physics. Any such value will be ignored. This joint connects %s.", _bodies_to_string()));
403
403
}
404
404
} break;
405
405
case PhysicsServer3D::G6DOF_JOINT_ANGULAR_RESTITUTION: {
406
-
if (!Math::is_equal_approx(p_value, DEFAULT_ANGULAR_RESTITUTION)) {
406
+
if (!Math::is_equal_approx(p_value, G6DOF_DEFAULT_ANGULAR_RESTITUTION)) {
407
407
WARN_PRINT(vformat("6DOF joint angular restitution is not supported when using Jolt Physics. Any such value will be ignored. This joint connects %s.", _bodies_to_string()));
408
408
}
409
409
} break;
410
410
case PhysicsServer3D::G6DOF_JOINT_ANGULAR_FORCE_LIMIT: {
411
-
if (!Math::is_equal_approx(p_value, DEFAULT_ANGULAR_FORCE_LIMIT)) {
411
+
if (!Math::is_equal_approx(p_value, G6DOF_DEFAULT_ANGULAR_FORCE_LIMIT)) {
412
412
WARN_PRINT(vformat("6DOF joint angular force limit is not supported when using Jolt Physics. Any such value will be ignored. This joint connects %s.", _bodies_to_string()));
413
413
}
414
414
} break;
415
415
case PhysicsServer3D::G6DOF_JOINT_ANGULAR_ERP: {
416
-
if (!Math::is_equal_approx(p_value, DEFAULT_ANGULAR_ERP)) {
416
+
if (!Math::is_equal_approx(p_value, G6DOF_DEFAULT_ANGULAR_ERP)) {
417
417
WARN_PRINT(vformat("6DOF joint angular ERP is not supported when using Jolt Physics. Any such value will be ignored. This joint connects %s.", _bodies_to_string()));
if (!Math::is_equal_approx(p_value, DEFAULT_BIAS)) {
207
+
if (!Math::is_equal_approx(p_value, HINGE_DEFAULT_BIAS)) {
208
208
WARN_PRINT(vformat("Hinge joint bias is not supported when using Jolt Physics. Any such value will be ignored. This joint connects %s.", _bodies_to_string()));
if (!Math::is_equal_approx(p_value, DEFAULT_LIMIT_BIAS)) {
220
+
if (!Math::is_equal_approx(p_value, HINGE_DEFAULT_LIMIT_BIAS)) {
221
221
WARN_PRINT(vformat("Hinge joint bias limit is not supported when using Jolt Physics. Any such value will be ignored. This joint connects %s.", _bodies_to_string()));
222
222
}
223
223
} break;
224
224
case PhysicsServer3D::HINGE_JOINT_LIMIT_SOFTNESS: {
225
-
if (!Math::is_equal_approx(p_value, DEFAULT_SOFTNESS)) {
225
+
if (!Math::is_equal_approx(p_value, HINGE_DEFAULT_SOFTNESS)) {
226
226
WARN_PRINT(vformat("Hinge joint softness is not supported when using Jolt Physics. Any such value will be ignored. This joint connects %s.", _bodies_to_string()));
227
227
}
228
228
} break;
229
229
case PhysicsServer3D::HINGE_JOINT_LIMIT_RELAXATION: {
230
-
if (!Math::is_equal_approx(p_value, DEFAULT_RELAXATION)) {
230
+
if (!Math::is_equal_approx(p_value, HINGE_DEFAULT_RELAXATION)) {
231
231
WARN_PRINT(vformat("Hinge joint relaxation is not supported when using Jolt Physics. Any such value will be ignored. This joint connects %s.", _bodies_to_string()));
if (p_priority != JOINT_DEFAULT_SOLVER_PRIORITY) {
181
181
WARN_PRINT(vformat("Joint solver priority is not supported when using Jolt Physics. Any such value will be ignored. This joint connects %s.", _bodies_to_string()));
if (!Math::is_equal_approx(p_value, DEFAULT_BIAS)) {
102
+
if (!Math::is_equal_approx(p_value, PIN_DEFAULT_BIAS)) {
103
103
WARN_PRINT(vformat("Pin joint bias is not supported when using Jolt Physics. Any such value will be ignored. This joint connects %s.", _bodies_to_string()));
104
104
}
105
105
} break;
106
106
case PhysicsServer3D::PIN_JOINT_DAMPING: {
107
-
if (!Math::is_equal_approx(p_value, DEFAULT_DAMPING)) {
107
+
if (!Math::is_equal_approx(p_value, PIN_DEFAULT_DAMPING)) {
108
108
WARN_PRINT(vformat("Pin joint damping is not supported when using Jolt Physics. Any such value will be ignored. This joint connects %s.", _bodies_to_string()));
109
109
}
110
110
} break;
111
111
case PhysicsServer3D::PIN_JOINT_IMPULSE_CLAMP: {
112
-
if (!Math::is_equal_approx(p_value, DEFAULT_IMPULSE_CLAMP)) {
112
+
if (!Math::is_equal_approx(p_value, PIN_DEFAULT_IMPULSE_CLAMP)) {
113
113
WARN_PRINT(vformat("Pin joint impulse clamp is not supported when using Jolt Physics. Any such value will be ignored. This joint connects %s.", _bodies_to_string()));
0 commit comments