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

Method preBuild_FromKinematics

ogsr_engine/xrGame/PHShell.cpp:547–560  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

545}
546
547void CPHShell::preBuild_FromKinematics(IKinematics* K, BONE_P_MAP* p_geting_map)
548{
549 m_pKinematics = K;
550 spGetingMap = p_geting_map;
551 // CBoneData& bone_data = m_pKinematics->LL_GetData(0);
552 if (!m_spliter_holder)
553 m_spliter_holder = xr_new<CPHShellSplitterHolder>(this);
554 bool vis_check = false;
555 AddElementRecursive(0, m_pKinematics->LL_GetBoneRoot(), Fidentity, 0, &vis_check);
556 R_ASSERT2((*elements.begin())->numberOfGeoms(), "No physics shapes was assigned for model or no shapes in main root bone!!!");
557 if (m_spliter_holder->isEmpty())
558 ClearBreakInfo();
559 m_pKinematics = 0;
560}
561void CPHShell::ClearBreakInfo()
562{
563 {

Callers 2

CreateBrokenMethod · 0.80
CreateSkeletonMethod · 0.80

Calls 4

LL_GetBoneRootMethod · 0.80
isEmptyMethod · 0.80
numberOfGeomsMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected