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

Method setup_physic_shell

ogsr_engine/xrGame/PhysicsShellHolder.cpp:190–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190void CPhysicsShellHolder::setup_physic_shell()
191{
192 VERIFY(!m_pPhysicsShell);
193 create_physic_shell();
194 m_pPhysicsShell->Activate(XFORM(), 0, XFORM());
195 smart_cast<IKinematics*>(Visual())->CalculateBones_Invalidate();
196 smart_cast<IKinematics*>(Visual())->CalculateBones();
197 m_pPhysicsShell->GetGlobalTransformDynamic(&XFORM());
198}
199
200void CPhysicsShellHolder::deactivate_physics_shell()
201{

Callers

nothing calls this directly

Calls 6

XFORMFunction · 0.85
VisualFunction · 0.85
ActivateMethod · 0.45
CalculateBonesMethod · 0.45

Tested by

no test coverage detected