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

Method PlayContact

ogsr_engine/xrGame/CustomRocket.cpp:323–347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321 m_contact.up.set(normal);
322}
323void CCustomRocket::PlayContact()
324{
325 if (!m_contact.contact)
326 return;
327 if (eCollide == m_eState)
328 return;
329
330 StopEngine();
331 StopFlying();
332
333 m_eState = eCollide;
334
335 //дективировать физическую оболочку,чтоб ракета не летела дальше
336 if (m_pPhysicsShell)
337 {
338 m_pPhysicsShell->set_LinearVel({});
339 m_pPhysicsShell->set_AngularVel({});
340 m_pPhysicsShell->set_ObjectContactCallback(NULL);
341 m_pPhysicsShell->Disable();
342 }
343 // if (OnClient()) return;
344
345 Position().set(m_contact.pos);
346 m_contact.contact = false;
347}
348
349void CCustomRocket::OnH_B_Chield()
350{

Callers

nothing calls this directly

Calls 5

set_LinearVelMethod · 0.45
set_AngularVelMethod · 0.45
DisableMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected