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

Method getNumDofs

examples/SharedMemory/PhysicsDirect.cpp:1546–1556  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1544}
1545
1546int PhysicsDirect::getNumDofs(int bodyUniqueId) const
1547{
1548 BodyJointInfoCache2** bodyJointsPtr = m_data->m_bodyJointMap[bodyUniqueId];
1549 if (bodyJointsPtr && *bodyJointsPtr)
1550 {
1551 BodyJointInfoCache2* bodyJoints = *bodyJointsPtr;
1552 return bodyJoints->m_numDofs;
1553 }
1554 btAssert(0);
1555 return 0;
1556}
1557
1558bool PhysicsDirect::getJointInfo(int bodyIndex, int jointIndex, struct b3JointInfo& info) const
1559{

Calls

no outgoing calls

Tested by 2

TESTFunction · 0.36