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

Function get_box

ogsr_engine/xrGame/PhysicsShell.cpp:243–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243void get_box(CPhysicsShell* shell, const Fmatrix& form, Fvector& sz, Fvector& c)
244{
245 c.set(0, 0, 0);
246 for (int i = 0; 3 > i; ++i)
247 {
248 float lo, hi;
249 const Fvector& ax = cast_fv(((const float*)&form + i * 4));
250 shell->get_Extensions(ax, 0, lo, hi);
251 sz[i] = hi - lo;
252 c.add(Fvector().mul(ax, (lo + hi) / 2));
253 }
254}
255
256void destroy_physics_shell(CPhysicsShell*& p)
257{

Callers 2

correct_spawn_posMethod · 0.85
RestoreNetStateMethod · 0.85

Calls 4

setMethod · 0.45
get_ExtensionsMethod · 0.45
addMethod · 0.45
mulMethod · 0.45

Tested by

no test coverage detected