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

Function DBG_DrawPHObject

ogsr_engine/xrGame/PHDebug.cpp:396–412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

394}
395
396void DBG_DrawPHObject(CPHObject* obj)
397{
398 if (ph_dbg_draw_mask.test(phDbgDrawEnabledAABBS))
399 {
400 SPHObjDBGDraw obj_draw;
401 obj_draw.AABB.set(obj->AABB);
402 obj_draw.AABB_center.set(obj->spatial.sphere.P);
403 if (draw_frame)
404 {
405 dbg_draw_objects0.push_back(obj_draw);
406 }
407 else
408 {
409 dbg_draw_objects1.push_back(obj_draw);
410 }
411 }
412}
413void DBG_DrawContact(dContact& c)
414{
415#ifdef DRAW_CONTACTS

Callers 1

StepMethod · 0.85

Calls 3

testMethod · 0.45
setMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected