2#include <box3d/box3d.h>
20class Box3DJoint final :
public IJointBackend3D {
38 Box3DJoint(b3JointId
id, Kind
kind) : jointId_(
id), kind_(
kind) {}
39 ~Box3DJoint()
override {
destroy(); }
40 void bindOwner(Joint3D&
owner)
noexcept override {
41 if (isValid()) b3Joint_SetUserData(jointId_, &
owner);
43 bool isValid() const noexcept
override {
return b3Joint_IsValid(jointId_); }
44 void destroy() noexcept
override {
45 if (isValid()) b3DestroyJoint(jointId_,
true);
48 void invalidate() noexcept
override {
49 if (isValid()) b3Joint_SetUserData(jointId_,
nullptr);
53 return checked(
"physics.joint3d.localFrames", [&] {
54 const auto a = b3Joint_GetLocalFrameA(jointId_);
55 const auto b = b3Joint_GetLocalFrameB(jointId_);
57 static_cast<float>(
a.p.z),
a.q.v.x,
a.q.v.y,
a.q.v.z,
a.q.s},
58 {
static_cast<float>(
b.p.x),
static_cast<float>(
b.p.y),
59 static_cast<float>(
b.p.z),
b.q.v.x,
b.q.v.y,
b.q.v.z,
b.q.s}});
63 return checked(
"physics.joint3d.setCollideConnected", [&] {
64 b3Joint_SetCollideConnected(jointId_, collide);
69 return checked(
"physics.joint3d.getCollideConnected", [&] {
74 return checked(
"physics.joint3d.setForceThreshold", [&] {
75 nonNegative(threshold,
"Joint3D.setForceThreshold",
"threshold");
76 b3Joint_SetForceThreshold(jointId_, threshold);
82 return checked(
"physics.joint3d.getForceThreshold", [&] {
87 return checked(
"physics.joint3d.setTorqueThreshold", [&] {
88 nonNegative(threshold,
"Joint3D.setTorqueThreshold",
"threshold");
89 b3Joint_SetTorqueThreshold(jointId_, threshold);
95 return checked(
"physics.joint3d.getTorqueThreshold", [&] {
101 return checked(
"physics.joint3d.getConstraintForceX", [&] {
106 return checked(
"physics.joint3d.getConstraintForceY", [&] {
111 return checked(
"physics.joint3d.getConstraintForceZ", [&] {
116 return checked(
"physics.joint3d.getConstraintTorqueX", [&] {
121 return checked(
"physics.joint3d.getConstraintTorqueY", [&] {
126 return checked(
"physics.joint3d.getConstraintTorqueZ", [&] {
131 return checked(
"physics.joint3d.getLinearSeparation", [&] {
136 return checked(
"physics.joint3d.getAngularSeparation", [&] {
141 return checked(
"physics.joint3d.setDistanceLength", [&] {
142 requireKind(Kind::Distance,
"Joint3D.setDistanceLength");
143 nonNegative(
length,
"Joint3D.setDistanceLength",
"length");
144 b3DistanceJoint_SetLength(jointId_,
length);
150 return checked(
"physics.joint3d.getDistanceLength", [&] {
151 requireKind(Kind::Distance,
"Joint3D.getDistanceLength");
156 return checked(
"physics.joint3d.getDistanceCurrentLength", [&] {
157 requireKind(Kind::Distance,
"Joint3D.getDistanceCurrentLength");
162 return checked(
"physics.joint3d.setDistanceSpring", [&] {
163 requireKind(Kind::Distance,
"Joint3D.setDistanceSpring");
164 nonNegative(hertz,
"Joint3D.setDistanceSpring",
"hertz");
165 nonNegative(
dampingRatio,
"Joint3D.setDistanceSpring",
"dampingRatio");
166 b3DistanceJoint_SetSpringHertz(jointId_, hertz);
167 b3DistanceJoint_SetSpringDampingRatio(jointId_,
dampingRatio);
168 b3DistanceJoint_EnableSpring(jointId_,
enabled);
174 return checked(
"physics.joint3d.setDistanceLimits", [&] {
175 requireKind(Kind::Distance,
"Joint3D.setDistanceLimits");
176 nonNegative(
minimum,
"Joint3D.setDistanceLimits",
"minimum");
177 nonNegative(
maximum,
"Joint3D.setDistanceLimits",
"maximum");
180 b3DistanceJoint_EnableLimit(jointId_,
enabled);
186 return checked(
"physics.joint3d.setDistanceMotor", [&] {
187 requireKind(Kind::Distance,
"Joint3D.setDistanceMotor");
188 finite(speed,
"Joint3D.setDistanceMotor",
"speed");
189 nonNegative(
maxForce,
"Joint3D.setDistanceMotor",
"maxForce");
190 b3DistanceJoint_SetMotorSpeed(jointId_, speed);
191 b3DistanceJoint_SetMaxMotorForce(jointId_,
maxForce);
192 b3DistanceJoint_EnableMotor(jointId_,
enabled);
198 return checked(
"physics.joint3d.setRevoluteSpring", [&] {
199 requireKind(Kind::Revolute,
"Joint3D.setRevoluteSpring");
200 finite(targetAngle,
"Joint3D.setRevoluteSpring",
"targetAngle");
201 nonNegative(hertz,
"Joint3D.setRevoluteSpring",
"hertz");
202 nonNegative(
dampingRatio,
"Joint3D.setRevoluteSpring",
"dampingRatio");
203 b3RevoluteJoint_SetTargetAngle(jointId_, targetAngle);
204 b3RevoluteJoint_SetSpringHertz(jointId_, hertz);
205 b3RevoluteJoint_SetSpringDampingRatio(jointId_,
dampingRatio);
206 b3RevoluteJoint_EnableSpring(jointId_,
enabled);
212 return checked(
"physics.joint3d.setRevoluteLimits", [&] {
213 requireKind(Kind::Revolute,
"Joint3D.setRevoluteLimits");
214 finite(lower,
"Joint3D.setRevoluteLimits",
"lower");
215 finite(upper,
"Joint3D.setRevoluteLimits",
"upper");
216 if (lower > upper)
throw eve::Exception(
"Joint3D.setRevoluteLimits: lower must be <= upper");
217 b3RevoluteJoint_SetLimits(jointId_, lower, upper);
218 b3RevoluteJoint_EnableLimit(jointId_,
enabled);
224 return checked(
"physics.joint3d.setRevoluteMotor", [&] {
225 requireKind(Kind::Revolute,
"Joint3D.setRevoluteMotor");
226 finite(speed,
"Joint3D.setRevoluteMotor",
"speed");
227 nonNegative(maxTorque,
"Joint3D.setRevoluteMotor",
"maxTorque");
228 b3RevoluteJoint_SetMotorSpeed(jointId_, speed);
229 b3RevoluteJoint_SetMaxMotorTorque(jointId_, maxTorque);
230 b3RevoluteJoint_EnableMotor(jointId_,
enabled);
236 return checked(
"physics.joint3d.getRevoluteAngle", [&] {
237 requireKind(Kind::Revolute,
"Joint3D.getRevoluteAngle");
242 return checked(
"physics.joint3d.getRevoluteMotorTorque", [&] {
243 requireKind(Kind::Revolute,
"Joint3D.getRevoluteMotorTorque");
249 return checked(
"physics.joint3d.setPrismaticSpring", [&] {
250 requireKind(Kind::Prismatic,
"Joint3D.setPrismaticSpring");
251 finite(targetTranslation,
"Joint3D.setPrismaticSpring",
"targetTranslation");
252 nonNegative(hertz,
"Joint3D.setPrismaticSpring",
"hertz");
253 nonNegative(
dampingRatio,
"Joint3D.setPrismaticSpring",
"dampingRatio");
254 b3PrismaticJoint_SetTargetTranslation(jointId_, targetTranslation);
255 b3PrismaticJoint_SetSpringHertz(jointId_, hertz);
256 b3PrismaticJoint_SetSpringDampingRatio(jointId_,
dampingRatio);
257 b3PrismaticJoint_EnableSpring(jointId_,
enabled);
263 return checked(
"physics.joint3d.setPrismaticLimits", [&] {
264 requireKind(Kind::Prismatic,
"Joint3D.setPrismaticLimits");
265 finite(lower,
"Joint3D.setPrismaticLimits",
"lower");
266 finite(upper,
"Joint3D.setPrismaticLimits",
"upper");
267 if (lower > upper)
throw eve::Exception(
"Joint3D.setPrismaticLimits: lower must be <= upper");
268 b3PrismaticJoint_SetLimits(jointId_, lower, upper);
269 b3PrismaticJoint_EnableLimit(jointId_,
enabled);
275 return checked(
"physics.joint3d.setPrismaticMotor", [&] {
276 requireKind(Kind::Prismatic,
"Joint3D.setPrismaticMotor");
277 finite(speed,
"Joint3D.setPrismaticMotor",
"speed");
278 nonNegative(
maxForce,
"Joint3D.setPrismaticMotor",
"maxForce");
279 b3PrismaticJoint_SetMotorSpeed(jointId_, speed);
280 b3PrismaticJoint_SetMaxMotorForce(jointId_,
maxForce);
281 b3PrismaticJoint_EnableMotor(jointId_,
enabled);
287 return checked(
"physics.joint3d.getPrismaticTranslation", [&] {
288 requireKind(Kind::Prismatic,
"Joint3D.getPrismaticTranslation");
293 return checked(
"physics.joint3d.getPrismaticSpeed", [&] {
294 requireKind(Kind::Prismatic,
"Joint3D.getPrismaticSpeed");
299 return checked(
"physics.joint3d.getPrismaticMotorForce", [&] {
300 requireKind(Kind::Prismatic,
"Joint3D.getPrismaticMotorForce");
305 return checked(
"physics.joint3d.setSphericalConeLimit", [&] {
306 requireKind(Kind::Spherical,
"Joint3D.setSphericalConeLimit");
307 finite(
angle,
"Joint3D.setSphericalConeLimit",
"angle");
308 if (angle < 0.f || angle > B3_PI)
309 throw eve::Exception(
"Joint3D.setSphericalConeLimit: angle must be in [0, pi]");
310 b3SphericalJoint_SetConeLimit(jointId_,
angle);
311 b3SphericalJoint_EnableConeLimit(jointId_,
enabled);
317 return checked(
"physics.joint3d.setSphericalTwistLimits", [&] {
318 requireKind(Kind::Spherical,
"Joint3D.setSphericalTwistLimits");
319 finite(lower,
"Joint3D.setSphericalTwistLimits",
"lower");
320 finite(upper,
"Joint3D.setSphericalTwistLimits",
"upper");
321 if (lower > upper || lower < -0.99f * B3_PI || upper > 0.99f * B3_PI)
322 throw eve::Exception(
"Joint3D.setSphericalTwistLimits: require -0.99*pi <= lower <= upper <= 0.99*pi");
323 b3SphericalJoint_SetTwistLimits(jointId_, lower, upper);
324 b3SphericalJoint_EnableTwistLimit(jointId_,
enabled);
330 float maxTorque)
override {
331 return checked(
"physics.joint3d.setSphericalMotor", [&] {
332 requireKind(Kind::Spherical,
"Joint3D.setSphericalMotor");
333 finite(velocityX,
"Joint3D.setSphericalMotor",
"velocityX");
334 finite(velocityY,
"Joint3D.setSphericalMotor",
"velocityY");
335 finite(velocityZ,
"Joint3D.setSphericalMotor",
"velocityZ");
336 nonNegative(maxTorque,
"Joint3D.setSphericalMotor",
"maxTorque");
337 b3SphericalJoint_SetMotorVelocity(jointId_, {velocityX, velocityY, velocityZ});
338 b3SphericalJoint_SetMaxMotorTorque(jointId_, maxTorque);
339 b3SphericalJoint_EnableMotor(jointId_,
enabled);
345 return checked(
"physics.joint3d.getSphericalConeAngle", [&] {
346 requireKind(Kind::Spherical,
"Joint3D.getSphericalConeAngle");
351 return checked(
"physics.joint3d.getSphericalTwistAngle", [&] {
352 requireKind(Kind::Spherical,
"Joint3D.getSphericalTwistAngle");
357 return checked(
"physics.joint3d.setWheelSuspension", [&] {
358 requireKind(Kind::Wheel,
"Joint3D.setWheelSuspension");
359 nonNegative(hertz,
"Joint3D.setWheelSuspension",
"hertz");
360 nonNegative(
dampingRatio,
"Joint3D.setWheelSuspension",
"dampingRatio");
361 b3WheelJoint_SetSuspensionHertz(jointId_, hertz);
362 b3WheelJoint_SetSuspensionDampingRatio(jointId_,
dampingRatio);
363 b3WheelJoint_EnableSuspension(jointId_,
enabled);
369 return checked(
"physics.joint3d.setWheelSuspensionLimits", [&] {
370 requireKind(Kind::Wheel,
"Joint3D.setWheelSuspensionLimits");
371 finite(lower,
"Joint3D.setWheelSuspensionLimits",
"lower");
372 finite(upper,
"Joint3D.setWheelSuspensionLimits",
"upper");
373 if (lower > upper)
throw eve::Exception(
"Joint3D.setWheelSuspensionLimits: lower must be <= upper");
374 b3WheelJoint_SetSuspensionLimits(jointId_, lower, upper);
375 b3WheelJoint_EnableSuspensionLimit(jointId_,
enabled);
381 return checked(
"physics.joint3d.setWheelSpinMotor", [&] {
382 requireKind(Kind::Wheel,
"Joint3D.setWheelSpinMotor");
383 finite(speed,
"Joint3D.setWheelSpinMotor",
"speed");
384 nonNegative(maxTorque,
"Joint3D.setWheelSpinMotor",
"maxTorque");
385 b3WheelJoint_SetSpinMotorSpeed(jointId_, speed);
386 b3WheelJoint_SetMaxSpinTorque(jointId_, maxTorque);
387 b3WheelJoint_EnableSpinMotor(jointId_,
enabled);
393 float maxTorque)
override {
394 return checked(
"physics.joint3d.setWheelSteering", [&] {
395 requireKind(Kind::Wheel,
"Joint3D.setWheelSteering");
396 finite(targetAngle,
"Joint3D.setWheelSteering",
"targetAngle");
397 nonNegative(hertz,
"Joint3D.setWheelSteering",
"hertz");
398 nonNegative(
dampingRatio,
"Joint3D.setWheelSteering",
"dampingRatio");
399 nonNegative(maxTorque,
"Joint3D.setWheelSteering",
"maxTorque");
400 b3WheelJoint_SetTargetSteeringAngle(jointId_, targetAngle);
401 b3WheelJoint_SetSteeringHertz(jointId_, hertz);
402 b3WheelJoint_SetSteeringDampingRatio(jointId_,
dampingRatio);
403 b3WheelJoint_SetMaxSteeringTorque(jointId_, maxTorque);
404 b3WheelJoint_EnableSteering(jointId_,
enabled);
410 return checked(
"physics.joint3d.setWheelSteeringLimits", [&] {
411 requireKind(Kind::Wheel,
"Joint3D.setWheelSteeringLimits");
412 finite(lower,
"Joint3D.setWheelSteeringLimits",
"lower");
413 finite(upper,
"Joint3D.setWheelSteeringLimits",
"upper");
414 if (lower > upper)
throw eve::Exception(
"Joint3D.setWheelSteeringLimits: lower must be <= upper");
415 b3WheelJoint_SetSteeringLimits(jointId_, lower, upper);
416 b3WheelJoint_EnableSteeringLimit(jointId_,
enabled);
422 return checked(
"physics.joint3d.getWheelSpinSpeed", [&] {
423 requireKind(Kind::Wheel,
"Joint3D.getWheelSpinSpeed");
428 return checked(
"physics.joint3d.getWheelSpinTorque", [&] {
429 requireKind(Kind::Wheel,
"Joint3D.getWheelSpinTorque");
434 return checked(
"physics.joint3d.getWheelSteeringAngle", [&] {
435 requireKind(Kind::Wheel,
"Joint3D.getWheelSteeringAngle");
440 return checked(
"physics.joint3d.getWheelSteeringTorque", [&] {
441 requireKind(Kind::Wheel,
"Joint3D.getWheelSteeringTorque");
446 return checked(
"physics.joint3d.setWeldLinearSpring", [&] {
447 requireKind(Kind::Weld,
"Joint3D.setWeldLinearSpring");
448 nonNegative(hertz,
"Joint3D.setWeldLinearSpring",
"hertz");
449 nonNegative(
dampingRatio,
"Joint3D.setWeldLinearSpring",
"dampingRatio");
450 b3WeldJoint_SetLinearHertz(jointId_, hertz);
451 b3WeldJoint_SetLinearDampingRatio(jointId_,
dampingRatio);
457 return checked(
"physics.joint3d.setWeldAngularSpring", [&] {
458 requireKind(Kind::Weld,
"Joint3D.setWeldAngularSpring");
459 nonNegative(hertz,
"Joint3D.setWeldAngularSpring",
"hertz");
460 nonNegative(
dampingRatio,
"Joint3D.setWeldAngularSpring",
"dampingRatio");
461 b3WeldJoint_SetAngularHertz(jointId_, hertz);
462 b3WeldJoint_SetAngularDampingRatio(jointId_,
dampingRatio);
468 return checked(
"physics.joint3d.getWeldLinearHertz", [&] {
469 requireKind(Kind::Weld,
"Joint3D.getWeldLinearHertz");
474 return checked(
"physics.joint3d.getWeldLinearDampingRatio", [&] {
475 requireKind(Kind::Weld,
"Joint3D.getWeldLinearDampingRatio");
480 return checked(
"physics.joint3d.getWeldAngularHertz", [&] {
481 requireKind(Kind::Weld,
"Joint3D.getWeldAngularHertz");
486 return checked(
"physics.joint3d.getWeldAngularDampingRatio", [&] {
487 requireKind(Kind::Weld,
"Joint3D.getWeldAngularDampingRatio");
492 return checked(
"physics.joint3d.setMotorLinearVelocity", [&] {
493 requireKind(Kind::Motor,
"Joint3D.setMotorLinearVelocity");
494 finite(
vx,
"Joint3D.setMotorLinearVelocity",
"vx");
495 finite(
vy,
"Joint3D.setMotorLinearVelocity",
"vy");
496 finite(
vz,
"Joint3D.setMotorLinearVelocity",
"vz");
497 b3MotorJoint_SetLinearVelocity(jointId_, b3Vec3{
vx,
vy,
vz});
503 return checked(
"physics.joint3d.setMotorAngularVelocity", [&] {
504 requireKind(Kind::Motor,
"Joint3D.setMotorAngularVelocity");
505 finite(
wx,
"Joint3D.setMotorAngularVelocity",
"wx");
506 finite(
wy,
"Joint3D.setMotorAngularVelocity",
"wy");
507 finite(
wz,
"Joint3D.setMotorAngularVelocity",
"wz");
508 b3MotorJoint_SetAngularVelocity(jointId_, b3Vec3{
wx,
wy,
wz});
514 return checked(
"physics.joint3d.setMotorVelocityLimits", [&] {
515 requireKind(Kind::Motor,
"Joint3D.setMotorVelocityLimits");
516 nonNegative(
maxForce,
"Joint3D.setMotorVelocityLimits",
"maxForce");
517 nonNegative(maxTorque,
"Joint3D.setMotorVelocityLimits",
"maxTorque");
518 b3MotorJoint_SetMaxVelocityForce(jointId_,
maxForce);
519 b3MotorJoint_SetMaxVelocityTorque(jointId_, maxTorque);
525 return checked(
"physics.joint3d.setMotorLinearSpring", [&] {
526 requireKind(Kind::Motor,
"Joint3D.setMotorLinearSpring");
527 nonNegative(hertz,
"Joint3D.setMotorLinearSpring",
"hertz");
528 nonNegative(
dampingRatio,
"Joint3D.setMotorLinearSpring",
"dampingRatio");
529 nonNegative(
maxForce,
"Joint3D.setMotorLinearSpring",
"maxForce");
530 b3MotorJoint_SetLinearHertz(jointId_, hertz);
531 b3MotorJoint_SetLinearDampingRatio(jointId_,
dampingRatio);
532 b3MotorJoint_SetMaxSpringForce(jointId_,
maxForce);
538 return checked(
"physics.joint3d.setMotorAngularSpring", [&] {
539 requireKind(Kind::Motor,
"Joint3D.setMotorAngularSpring");
540 nonNegative(hertz,
"Joint3D.setMotorAngularSpring",
"hertz");
541 nonNegative(
dampingRatio,
"Joint3D.setMotorAngularSpring",
"dampingRatio");
542 nonNegative(maxTorque,
"Joint3D.setMotorAngularSpring",
"maxTorque");
543 b3MotorJoint_SetAngularHertz(jointId_, hertz);
544 b3MotorJoint_SetAngularDampingRatio(jointId_,
dampingRatio);
545 b3MotorJoint_SetMaxSpringTorque(jointId_, maxTorque);
551 return checked(
"physics.joint3d.getMotorLinearVelocityX", [&] {
552 requireKind(Kind::Motor,
"Joint3D.getMotorLinearVelocityX");
557 return checked(
"physics.joint3d.getMotorLinearVelocityY", [&] {
558 requireKind(Kind::Motor,
"Joint3D.getMotorLinearVelocityY");
563 return checked(
"physics.joint3d.getMotorLinearVelocityZ", [&] {
564 requireKind(Kind::Motor,
"Joint3D.getMotorLinearVelocityZ");
569 return checked(
"physics.joint3d.getMotorAngularVelocityX", [&] {
570 requireKind(Kind::Motor,
"Joint3D.getMotorAngularVelocityX");
575 return checked(
"physics.joint3d.getMotorAngularVelocityY", [&] {
576 requireKind(Kind::Motor,
"Joint3D.getMotorAngularVelocityY");
581 return checked(
"physics.joint3d.getMotorAngularVelocityZ", [&] {
582 requireKind(Kind::Motor,
"Joint3D.getMotorAngularVelocityZ");
587 return checked(
"physics.joint3d.setParallelSpring", [&] {
588 requireKind(Kind::Parallel,
"Joint3D.setParallelSpring");
589 nonNegative(hertz,
"Joint3D.setParallelSpring",
"hertz");
590 nonNegative(
dampingRatio,
"Joint3D.setParallelSpring",
"dampingRatio");
591 nonNegative(maxTorque,
"Joint3D.setParallelSpring",
"maxTorque");
592 b3ParallelJoint_SetSpringHertz(jointId_, hertz);
593 b3ParallelJoint_SetSpringDampingRatio(jointId_,
dampingRatio);
594 b3ParallelJoint_SetMaxTorque(jointId_, maxTorque);
600 return checked(
"physics.joint3d.getParallelHertz", [&] {
601 requireKind(Kind::Parallel,
"Joint3D.getParallelHertz");
606 return checked(
"physics.joint3d.getParallelDampingRatio", [&] {
607 requireKind(Kind::Parallel,
"Joint3D.getParallelDampingRatio");
612 return checked(
"physics.joint3d.getParallelMaxTorque", [&] {
613 requireKind(Kind::Parallel,
"Joint3D.getParallelMaxTorque");
619 void requireKind(Kind expected,
const char*
operation)
const {
622 b3JointId jointId_{};
627 auto* native =
dynamic_cast<Box3DJoint*
>(joint.backend_.get());
628 if (!native)
throw eve::Exception(
"Box3D joint access requires a Box3D backend");
629 return native->jointId_;
632 return std::make_unique<Box3DJoint>(
id,
kind);
ActionParameterOperation operation
std::shared_ptr< OceanGpuSpectrum > owner
static Diagnostic error(DiagnosticCode code, std::string message, std::string path={})
Construct an error diagnostic with the standard error severity.
EVENGINE_API_FOUNDATION public API.
Move-only operation result carrying either a value or Status.
static Result success(T value)
Construct a successful result owning value.
Script-facing joint owned by a World3D. Legacy scalar/void methods adapt the checked backend contract...
std::unique_ptr< IJointBackend3D > adoptJoint(b3JointId id, JointKind3D kind)
Adopts a live Box3D constraint; internal native composition boundary, simulation thread only.
Result< ForceVector > checked(ForceVector value)
void setDistanceSpring(JPH::TwoBodyConstraint &value, bool enabled, float hertz, float damping)
Configures its independent spring after validation; no allocation or callbacks.
void setDistanceLength(JPH::TwoBodyConstraint &value, float length)
Updates an already validated private distance constraint, between simulation steps.
void setDistanceLimits(JPH::TwoBodyConstraint &value, bool enabled, float lo, float hi)
Configures its independent hard limits after validation; no allocation or callbacks.
void setDistanceMotor(JPH::TwoBodyConstraint &value, bool enabled, float speed, float force)
Configures its independent motor after validation; no allocation or callbacks.
JointKind3D
Stable constraint kinds; numeric values are used by stress events.
Private bridge used exclusively by Box3D composition and native query code.
static b3JointId jointId(const Joint3D &joint)
Internal checked Box3D joint ID; fails for another backend.