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

Method CreateSkeleton

ogsr_engine/xrGame/PhysicObject.cpp:114–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114void CPhysicObject::CreateSkeleton(CSE_ALifeObjectPhysic* po)
115{
116 if (m_pPhysicsShell)
117 return;
118 if (!Visual())
119 return;
120 LPCSTR fixed_bones = *po->fixed_bones;
121 m_pPhysicsShell = P_build_Shell(this, !po->_flags.test(CSE_PHSkeleton::flActive), fixed_bones);
122 ApplySpawnIniToPhysicShell(&po->spawn_ini(), m_pPhysicsShell, fixed_bones[0] != '\0');
123 ApplySpawnIniToPhysicShell(smart_cast<IKinematics*>(Visual())->LL_UserData(), m_pPhysicsShell, fixed_bones[0] != '\0');
124}
125
126void CPhysicObject::Load(LPCSTR section)
127{

Callers

nothing calls this directly

Calls 6

VisualFunction · 0.85
P_build_ShellFunction · 0.85
spawn_iniMethod · 0.80
LL_UserDataMethod · 0.80
testMethod · 0.45

Tested by

no test coverage detected