| 112 | } |
| 113 | |
| 114 | void 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 | |
| 126 | void CPhysicObject::Load(LPCSTR section) |
| 127 | { |
nothing calls this directly
no test coverage detected