MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / dJointSetAMotorNumAxes

Function dJointSetAMotorNumAxes

3rd_party/Src/ode/ode/src/joint.cpp:2486–2498  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2484
2485
2486extern "C" void dJointSetAMotorNumAxes (dxJointAMotor *joint, int num)
2487{
2488 dAASSERT(joint && num >= 0 && num <= 3);
2489 dUASSERT(joint->vtable == &__damotor_vtable,"joint is not an amotor");
2490 if (joint->mode == dAMotorEuler) {
2491 joint->num = 3;
2492 }
2493 else {
2494 if (num < 0) num = 0;
2495 if (num > 3) num = 3;
2496 joint->num = num;
2497 }
2498}
2499
2500
2501extern "C" void dJointSetAMotorAxis (dxJointAMotor *joint, int anum, int rel,

Callers 4

setNumAxesMethod · 0.85
CreateSliderMethod · 0.85
CreateFullControlMethod · 0.85
PullingUpdateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected