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

Method GetAnchorDynamic

ogsr_engine/xrGame/PHJoint.cpp:1195–1207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1193}
1194
1195void CPHJoint::GetAnchorDynamic(Fvector& anchor)
1196{
1197 dVector3 result;
1198 switch (eType)
1199 {
1200 case hinge: dJointGetHingeAnchor(m_joint, result); break;
1201 case hinge2: dJointGetHingeAnchor(m_joint, result); break;
1202 case ball:;
1203 case full_control: dJointGetBallAnchor(m_joint, result); break;
1204 case slider: R_ASSERT2(false, "position of slider joint is undefinite");
1205 }
1206 anchor.set(result[0], result[1], result[2]);
1207}
1208
1209CPHJoint::SPHAxis::SPHAxis()
1210{

Callers 3

InitMethod · 0.80
GetExitPositionMethod · 0.80
TestPassMethod · 0.80

Calls 3

dJointGetHingeAnchorFunction · 0.85
dJointGetBallAnchorFunction · 0.85
setMethod · 0.45

Tested by 1

TestPassMethod · 0.64