MCPcopy Create free account
hub / github.com/bulletphysics/bullet3 / b3JointControlSetKd

Function b3JointControlSetKd

examples/SharedMemory/PhysicsClientC_API.cpp:1134–1145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1132}
1133
1134B3_SHARED_API int b3JointControlSetKd(b3SharedMemoryCommandHandle commandHandle, int dofIndex, double value)
1135{
1136 struct SharedMemoryCommand* command = (struct SharedMemoryCommand*)commandHandle;
1137 b3Assert(command);
1138 if ((dofIndex >= 0) && (dofIndex < MAX_DEGREE_OF_FREEDOM))
1139 {
1140 command->m_sendDesiredStateCommandArgument.m_Kd[dofIndex] = value;
1141 command->m_updateFlags |= SIM_DESIRED_STATE_HAS_KD;
1142 command->m_sendDesiredStateCommandArgument.m_hasDesiredStateFlags[dofIndex] |= SIM_DESIRED_STATE_HAS_KD;
1143 }
1144 return 0;
1145}
1146
1147B3_SHARED_API int b3JointControlSetKdMultiDof(b3SharedMemoryCommandHandle commandHandle, int dofIndex, double* kds, int dofCount)
1148{

Calls

no outgoing calls

Tested by

no test coverage detected