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

Method build_FromKinematics

ogsr_engine/xrGame/PHShell.cpp:532–545  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

530}
531static BONE_P_MAP* spGetingMap = NULL;
532void CPHShell::build_FromKinematics(IKinematics* K, BONE_P_MAP* p_geting_map)
533{
534 m_pKinematics = K;
535 spGetingMap = p_geting_map;
536 // CBoneData& bone_data = m_pKinematics->LL_GetData(0);
537 if (!m_spliter_holder)
538 m_spliter_holder = xr_new<CPHShellSplitterHolder>(this);
539 bool vis_check = false;
540 AddElementRecursive(0, m_pKinematics->LL_GetBoneRoot(), Fidentity, 0, &vis_check);
541 // R_ASSERT2((*elements.begin())->numberOfGeoms(),"No physics shapes was assigned for model or no shapes in main root bone!!!");
542 // SetCallbacks(BonesCallback);
543 if (m_spliter_holder->isEmpty())
544 ClearBreakInfo();
545}
546
547void CPHShell::preBuild_FromKinematics(IKinematics* K, BONE_P_MAP* p_geting_map)
548{

Callers 5

CreateBodyMethod · 0.80
CreateSkeletonMethod · 0.80
P_build_ShellFunction · 0.80
CreatePhysicsShellMethod · 0.80
CreateSkeletonMethod · 0.80

Calls 2

LL_GetBoneRootMethod · 0.80
isEmptyMethod · 0.80

Tested by

no test coverage detected