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

Method SetShell

ogsr_engine/xrGame/PHJoint.cpp:1256–1274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1254}
1255
1256void CPHJoint::SetShell(CPHShell* p)
1257{
1258 if (!m_joint || !pShell)
1259 {
1260 pShell = p;
1261 return;
1262 }
1263 if (pShell != p)
1264 {
1265 pShell->Island().RemoveJoint(m_joint);
1266 p->Island().AddJoint(m_joint);
1267 if (m_joint1)
1268 {
1269 pShell->Island().RemoveJoint(m_joint1);
1270 p->Island().AddJoint(m_joint1);
1271 }
1272 pShell = p;
1273 }
1274}
1275void CPHJoint::ClearDestroyInfo() { xr_delete(m_destroy_info); }

Callers 5

PassEndElementsMethod · 0.45
PassEndJointsMethod · 0.45
add_ElementMethod · 0.45
add_JointMethod · 0.45
SplitFromEndMethod · 0.45

Calls 2

RemoveJointMethod · 0.80
AddJointMethod · 0.80

Tested by

no test coverage detected