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

Function createJoint

3rd_party/Src/ode/ode/src/ode.cpp:933–949  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

931
932
933static dxJoint *createJoint (dWorldID w, dJointGroupID group,
934 dxJoint::Vtable *vtable)
935{
936 dIASSERT (vtable);
937 dxJoint *j;
938 if (group) {
939 j = (dxJoint*) group->stack.alloc (vtable->size);
940 group->num++;
941 }
942 else j = (dxJoint*) dAlloc (vtable->size);
943 dJointInit (w,j);
944 j->vtable = vtable;
945 if (group) j->flags |= dJOINT_INGROUP;
946 if (vtable->init) vtable->init (j);
947 j->feedback = 0;
948 return j;
949}
950
951
952dxJoint * dJointCreateBall (dWorldID w, dJointGroupID group)

Callers 10

dJointCreateBallFunction · 0.85
dJointCreateHingeFunction · 0.85
dJointCreateSliderFunction · 0.85
dJointCreateContactFunction · 0.85
dJointCreateHinge2Function · 0.85
dJointCreateUniversalFunction · 0.85
dJointCreateFixedFunction · 0.85
dJointCreateNullFunction · 0.85
dJointCreateAMotorFunction · 0.85

Calls 4

dAllocFunction · 0.85
dJointInitFunction · 0.85
allocMethod · 0.45
initMethod · 0.45

Tested by

no test coverage detected