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

Function P_build_Shell

ogsr_engine/xrGame/PhysicsShell.cpp:46–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46CPhysicsShell* P_build_Shell(CGameObject* obj, bool not_active_state, BONE_P_MAP* bone_map, bool not_set_bone_callbacks)
47{
48 IKinematics* pKinematics = smart_cast<IKinematics*>(obj->Visual());
49
50 CPhysicsShell* pPhysicsShell = P_create_Shell();
51#ifdef DEBUG
52 pPhysicsShell->dbg_obj = smart_cast<CPhysicsShellHolder*>(obj);
53#endif
54 pPhysicsShell->build_FromKinematics(pKinematics, bone_map);
55
56 pPhysicsShell->set_PhysicsRefObject(smart_cast<CPhysicsShellHolder*>(obj));
57 pPhysicsShell->mXFORM.set(obj->XFORM());
58 pPhysicsShell->Activate(not_active_state); //,
59 // m_pPhysicsShell->SmoothElementsInertia(0.3f);
60 pPhysicsShell->SetAirResistance(); // 0.0014f,1.5f
61
62 return pPhysicsShell;
63}
64
65void fix_bones(LPCSTR fixed_bones, CPhysicsShell* shell)
66{

Callers 8

net_SpawnMethod · 0.85
SpawnInitPhysicsMethod · 0.85
CreatePhysicsShellMethod · 0.85
create_physic_shellMethod · 0.85
create_shellMethod · 0.85
CreateSkeletonMethod · 0.85
net_SpawnMethod · 0.85
in_NetSpawnMethod · 0.85

Calls 15

P_create_ShellFunction · 0.85
_GetItemCountFunction · 0.85
_GetItemFunction · 0.85
make_stringFunction · 0.85
physicsBoneClass · 0.85
VisualMethod · 0.80
build_FromKinematicsMethod · 0.80
LL_BoneIDMethod · 0.80
FixMethod · 0.80
set_PhysicsRefObjectMethod · 0.45
setMethod · 0.45
ActivateMethod · 0.45

Tested by

no test coverage detected