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

Method set_PhysicsRefObject

ogsr_engine/xrGame/PHGeometryOwner.cpp:325–333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323 return (*m_geoms.begin())->get_callback_data();
324}
325void CPHGeometryOwner::set_PhysicsRefObject(CPhysicsShellHolder* ref_object)
326{
327 m_phys_ref_object = ref_object;
328 if (!b_builded)
329 return;
330 GEOM_I i = m_geoms.begin(), e = m_geoms.end();
331 for (; i != e; ++i)
332 (*i)->set_ref_object(ref_object);
333}
334
335u16 CPHGeometryOwner::numberOfGeoms() { return (u16)m_geoms.size(); }
336

Callers

nothing calls this directly

Calls 3

set_ref_objectMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected