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

Function dJointSetAMotorParam

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

Source from the content-addressed store, hash-verified

2553
2554
2555extern "C" void dJointSetAMotorParam (dxJointAMotor *joint, int parameter,
2556 dReal value)
2557{
2558 dAASSERT(joint);
2559 dUASSERT(joint->vtable == &__damotor_vtable,"joint is not an amotor");
2560 int anum = parameter >> 8;
2561 if (anum < 0) anum = 0;
2562 if (anum > 2) anum = 2;
2563 parameter &= 0xff;
2564 joint->limot[anum].set (parameter, value);
2565}
2566
2567
2568extern "C" void dJointSetAMotorMode (dxJointAMotor *joint, int mode)

Callers 10

setParamMethod · 0.85
CreateSliderMethod · 0.85
CreateFullControlMethod · 0.85
SetForceActiveMethod · 0.85
SetVelocityActiveMethod · 0.85
SetLimitsActiveMethod · 0.85
PullingUpdateMethod · 0.85

Calls 1

setMethod · 0.45

Tested by

no test coverage detected