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

Method state_start

ogsr_engine/xrGame/interactive_motion.cpp:55–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53float depth = 0;
54void get_depth(bool& do_colide, bool bo1, dContact& c, SGameMtl* /*material_1*/, SGameMtl* /*material_2*/) { save_max(depth, c.geom.depth); }
55void interactive_motion::state_start(CPhysicsShell* s)
56{
57 s->add_ObjectContactCallback(get_depth);
58 collide(s);
59
60 if (flags.test(fl_switch_dm_toragdoll))
61 {
62 flags.assign(0);
63 s->remove_ObjectContactCallback(get_depth);
64 return;
65 }
66}
67
68void interactive_motion::state_end(CPhysicsShell* s)
69{

Callers

nothing calls this directly

Calls 8

EnabledCallbacksMethod · 0.80
testMethod · 0.45
assignMethod · 0.45
setMethod · 0.45
DisableMethod · 0.45
set_ApplyByGravityMethod · 0.45

Tested by

no test coverage detected